We are implementing a couple of standardized UML Profiles in the Eclipse UPR Project. We implement them as static profiles and generate code for them. In the profiles we use OCL to declare the derived properties. Since we implement the profiles as static profiles, we generate Java code for the OCL expressions in the corresponding Java classes . Until Kepler this worked fine, but when switching to Luna some derived properties do not work. It seems that a meta-model lookup during an allInstances() call on a stereotype class did not work. An OperationNotSupportedException is thrown. I also tried re-generating the Java code in Luna, but this did not make a difference.
To test this out, you can pull the UPR git repository : git://git.eclipse.org/gitroot/upr/upr.git
Then checkout the branch "derivedAttributeTest"
Then run project "org.eclipse.upr.depl.tests" as JUnit plug-in test.
(You definitely need to regenerate. Java Code Generation is still
experimental so APIs evolve.)
On 26/10/2014 22:02, Max Bureck wrote:
> To test this out, you can pull the UPR git repository :
> Then checkout the branch "derivedAttributeTest"
> Then run project "org.eclipse.upr.depl.tests" as JUnit plug-in test.
On 27/10/2014 10:19, Max Bureck wrote:
> Hey Ed,
> Thanks for the quick response and creating the bug entry! We will
> regenerate the code under Luna then and make it our minimum required
> Thanks again and best regards,