User Tools

Site Tools


faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

faq [2010/03/11 22:18]
ptidejteam created
faq [2014/03/11 05:24]
yann
Line 28: Line 28:
     * Q: What is CPL?     * Q: What is CPL?
     * A: CPL, also known as "​Common Ptidej Library",​ is a project that contains all kind of utility code and useful libraries that can be used in any projects build as part of Ptidej.     * A: CPL, also known as "​Common Ptidej Library",​ is a project that contains all kind of utility code and useful libraries that can be used in any projects build as part of Ptidej.
 +
 +    * Q: When creating a model by hand, I receive the following warning in the Console, why, what does it mean, and what should I do?
 +<code java>
 +## util.lang.ConcreteReceiverGuard reports a runtime deprecation:​ calling method "​padl.kernel.impl.CodeLevelModel.create()"​ from class "​sad.helper.SmellDetectionCaller"​
 +## Please use the methods in "​padl.generator.helper.ModelGenerator"​ to obtain code-level models.
 +</​code>​
 +    * A: The code to create model is now factored out into the class ''​ModelGenerator''​ to make them consistent across uses. The run-time "​deprecation"​ warning just to let users know that they should better use ''​ModelGenerator''​ rather than their own model creation procedures.
 +
 +    * Q: When creating a model using the creator from class-files,​ I received some exceptions as follows, should I be worried?
 +<code java>
 +Caused by: padl.kernel.exception.ModelDeclarationException: ​
 +padl.kernel.impl.GenericContainerOfNaturallyOrderedConstituents ​
 +reports a duplicate constituent ​
 +"​org.eclipse.emf.ecore.resource.Resource$Factory$Registry" ​
 +(padl.kernel.impl.MemberGhost) in 
 +"/​argoUML026|org|eclipse|emf|ecore|resource|org.eclipse.emf.ecore.resource..Resource" ​
 +(padl.kernel.impl.Ghost)</​code>​
 +    * A: No need to worry, such exceptions only means that, somehow, the same constituent is being created more than once from different sources so only one such constituent is kept and the other are discarded. This can only be a worry if different sources provide different constituents with the same path.
 +
faq.txt ยท Last modified: 2019/10/06 20:37 (external edit)