Community
Participate
Working Groups
EclipseLink: trunk (2.3) JDK: 1.6.0_23 DB: Oracle 11.1.0.7 When set "eclipselink.weaving.changetracking=false", and all other options keep default level. There are the following two tests failed with JPA-SRG (org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite): testGetReferenceUsedInUpdate: ============================= junit.framework.AssertionFailedError: commit fetched object. at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testGetReferenceUsedInUpdate(EntityManagerJUnitTestSuite.java:8404) at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:503) testWeaving: ============ junit.framework.AssertionFailedError: Object not weaved for ChangeTracker:Employee: null at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.internalTestWeaving(EntityManagerJUnitTestSuite.java:7860) at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testWeaving(EntityManagerJUnitTestSuite.java:7825) at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:503)
moving targets of 2.3.0 bugs because 2.3.0 has shipped.
Created attachment 201941 [details] Proposed changes to correct one test Patch fixes the testWeaving test
Created attachment 202000 [details] Proposed changes to correct second test By turning the weaving for change tracking off, meaning using a deferred change tracking policy, the behavior is as expected and the test is incorrect. This update fixes the test.
Changes have been submitted. Reviewed: Tom Ware (patch 1), Gordon Yorke (patch 2) Tests have been modified accordingly. No core changes, tests only.
*** Bug 343014 has been marked as a duplicate of this bug. ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink