Community
Participate
Working Groups
Two tests newly added by Tom and one existing test failed with static weaving option with following error message since 20110218-r8989 for main: testMultipleIdButNonIdClassEntity(), testRelatedBylawWrite() and testInterfaceBylawWrite() in org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest failed with error: An exception was caught during create operation: [Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.v20110218-r8989): org.eclipse.persistence.exceptions.DescriptorException Exception Description: An internal error occurred while accessing method [setReference] on class [class org.eclipse.persistence.testing.models.jpa.inherited.BuildingBylaw]. Internal Exception: java.lang.NoSuchMethodException: org.eclipse.persistence.testing.models.jpa.inherited.BuildingBylaw.setReference(org.eclipse.persistence.testing.models.jpa.inherited.BuildingBylaw) Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.inherited.BuildingBylaw --> [DatabaseTable(JPA_BUILDING)])]
The fix for Bug 282523 did not cover static weaving and these tests are related to test model changes to test that bug.
Created attachment 189539 [details] proposed fix
Previous code set the actual type on the weaved basic indirection policy at weaving time. This change moves the detection to metadata processing that will be performed whether or not weaving is occuring.
Created attachment 189597 [details] proposed fix - updated for feedback
Fix described above checked in to 2.1.x. 2.2.x and trunk. Reviewed by Guy Pelletier Tested with Static Weaving tests, Core LRG and JPA LRG
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink