Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Luna Problem with derived properties
Luna Problem with derived properties [message #1453341] Sun, 26 October 2014 21:02 Go to next message
Max Bureck is currently offline Max BureckFriend
Messages: 19
Registered: April 2013
Junior Member
Hi,

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.

Thanks,
Max
Re: Luna Problem with derived properties [message #1453634 is a reply to message #1453341] Mon, 27 October 2014 08:33 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Thanks. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=448927.

(You definitely need to regenerate. Java Code Generation is still
experimental so APIs evolve.)

Regards

Ed Willink


On 26/10/2014 22:02, Max Bureck wrote:
> 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.
Re: Luna Problem with derived properties [message #1453654 is a reply to message #1453634] Mon, 27 October 2014 09:19 Go to previous messageGo to next message
Max Bureck is currently offline Max BureckFriend
Messages: 19
Registered: April 2013
Junior Member
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 version.

Thanks again and best regards,
Max
Re: Luna Problem with derived properties [message #1453821 is a reply to message #1453654] Mon, 27 October 2014 14:45 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

http://www.eclipse.org/modeling/download.php?file=/modeling/mdt/ocl/downloads/drops/5.0.2/M201410270954/mdt-ocl-Update-M201410270954.zip

might be better.

Regards

Ed Willink


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
> version.
>
> Thanks again and best regards,
> Max
Previous Topic:[Luna] Package not registered in standalone
Next Topic:validating OCLs with API for UML models
Goto Forum:
  


Current Time: Tue Mar 19 10:29:45 GMT 2024

Powered by FUDForum. Page generated in 0.02422 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top