Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343017 - four tests failed in JPA-SRG with eclipselink.weaving.internal setting false
Summary: four tests failed in JPA-SRG with eclipselink.weaving.internal setting false
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 337369 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-15 15:54 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:33 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2011-04-15 15:54:18 EDT
EclipseLink: trunk (2.3)
JDK: 1.6.0_24
DB: Oracle 11.1.0.7
When set "eclipselink.weaving.internal=false", and all other options keep
default level. There are five tests in JPA-SRG
(org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite)
failed with the following error:

1. testCloneable
   -------------

junit.framework.AssertionFailedError: Changing clone address reset original to null. 
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testCloneable(EntityManagerJUnitTestSuite.java:5818)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

2. testSetFieldForPropertyAccess
   -----------------------------

junit.framework.AssertionFailedError: The manager was not correctly persisted.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetFieldForPropertyAccess(EntityManagerJUnitTestSuite.java:6736)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

3. testSetFieldForPropertyAccessWithNewEM
   --------------------------------------

junit.framework.AssertionFailedError: The manager was not correctly persisted.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetFieldForPropertyAccessWithNewEM(EntityManagerJUnitTestSuite.java:6889)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

4. testSetFieldForPropertyAccessWithRefresh
   ----------------------------------------

junit.framework.AssertionFailedError: The manager was not correctly persisted.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetFieldForPropertyAccessWithRefresh(EntityManagerJUnitTestSuite.java:6812)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

5. testWeaving
   -----------
junit.framework.AssertionFailedError: Object not weaved for PersistenceEntity:Employee: null
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.internalTestWeaving(EntityManagerJUnitTestSuite.java:7872)
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testWeaving(EntityManagerJUnitTestSuite.java:7829)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)
Comment 1 Kevin Yuan CLA 2011-04-19 11:50:30 EDT
With this flag when weaving is not used (add the following command within
"test-srg" target in build.xml during run tests: <param name="TEST_WEAVING"
value="-DTEST_NO_WEAVING=true"/>), there are the following four failures
occurred:

1. testCloneable
   -------------
junit.framework.AssertionFailedError: Changing clone address reset original to null.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testCloneable(EntityManagerJUnitTestSuite.java:5818)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

2. testSetFieldForPropertyAccess
   -----------------------------
junit.framework.AssertionFailedError: The manager was not correctly persisted.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetFieldForPropertyAccess(EntityManagerJUnitTestSuite.java:6736)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

3. testSetFieldForPropertyAccessWithNewEM
   --------------------------------------
junit.framework.AssertionFailedError: The manager was not correctly persisted.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetFieldForPropertyAccessWithNewEM(EntityManagerJUnitTestSuite.java:6889)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

4. testSetFieldForPropertyAccessWithRefresh
   ----------------------------------------
junit.framework.AssertionFailedError: The manager was not correctly persisted.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testSetFieldForPropertyAccessWithRefresh(EntityManagerJUnitTestSuite.java:6812)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)
Comment 2 Kevin Yuan CLA 2011-04-26 11:16:34 EDT
*** Bug 337369 has been marked as a duplicate of this bug. ***
Comment 3 Martin Grebac CLA 2014-12-10 14:54:18 EST
Not seen in recent runs.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:14:16 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:33:51 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink