-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENK-6] Attribute and Associations are generated in different orders across JVMs #4
Comments
[author="stephan", created="Fri, 5 Dec 2008 19:12:24 -0500 (GMT-05:00)"] |
[author="stephan", created="Fri, 5 Dec 2008 19:21:52 -0500 (GMT-05:00)"] org.netbeans.lib.jmi.uml2mof.Main varies by JVM. |
[author="stephan", created="Fri, 5 Dec 2008 19:39:19 -0500 (GMT-05:00)"] |
[author="jvs", created="Sat, 6 Dec 2008 15:28:10 -0500 (GMT-05:00)"] |
[author="stephan", created="Tue, 9 Dec 2008 16:40:44 -0500 (GMT-05:00)"] Trace output added to HibernateJavaHandler (and GeneratorBase) implies that the ordering of the Attributes in the IceCreamCone MofClass is incorrect in the collections returned from NetBeans MDR. |
[author="jvs", created="Tue, 9 Dec 2008 16:47:18 -0500 (GMT-05:00)"] |
[author="stephan", created="Tue, 9 Dec 2008 17:07:20 -0500 (GMT-05:00)"] |
[author="stephan", created="Tue, 9 Dec 2008 19:47:24 -0500 (GMT-05:00)"] |
[author="stephan", created="Tue, 9 Dec 2008 20:40:04 -0500 (GMT-05:00)"] |
[author="stephan", created="Wed, 10 Dec 2008 13:36:43 -0500 (GMT-05:00)"] Possible solutions, in increasing order of effort: 1. Use Netbeans memory repository implementation 2. Use Netbeans against MDRJDBC+HSQLDB 3. Switch to using Enki/Hibernate UML model import and conversion. Option 1 seems to work well for UML2MOF, and is the fastest fix (just add a system property). Still want to do #3 some day so that we can jettison Netbeans altogether. Will test #1 with Enki code gen before checking in any changes. |
[author="stephan", created="Wed, 10 Dec 2008 16:31:16 -0500 (GMT-05:00)"] Build now invoked uml2mof with system properties that configure memory repository and Enki code gen does the same in MdrGenerator. |
[author="stephan", created="Wed, 10 Dec 2008 16:33:09 -0500 (GMT-05:00)"] |
[reporter="stephan", created="Fri, 5 Dec 2008 18:58:33 -0500 (GMT-05:00)"]
Attribute and Associations are generated in different orders across JVMs.
Attribute parameter ordering in factory methods for class proxies vary across JVMs. This happens intermittently. See IceCreamCone references in ENK-3. In general, this likely means the Attributes are varying in order as well. It should only be visible for a) the factory methods already mentioned, and b) for event ordering for Attributes with a type that is a Classifier from the model itself.
Associations are generated in varying orders across JVMs as well. This happens more regularly and causes the MdrEventApiTest failure seen with the Sun JDK -- the eem.sample.special.Floor is firing events in order of associations found in the model and since the test requires it to fire events for two associations, reversing them causes the exception. (Also noted in ENK-3.)
Paths of investigation:
- Is this caused by XSLT output variation across JVMs? If so, is the variation unexpected (e.g., is the re-ordering ordered elements in the XML an XSLT script or XSLT processor bug) or expected (in which case can XSLT be modified to maintain order or should code gen sort the objects)
- If XMI input is constant, is MDR re-ordering elements that it shouldn't or is it Enki code gen?
The text was updated successfully, but these errors were encountered: