Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343015

Summary: one failure in JPA-SRG with eclipselink.weaving.fetchgroups setting false
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipselink.orm-inbox, guy.pelletier, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed changes none

Description Kevin Yuan CLA 2011-04-15 15:53:08 EDT
EclipseLink: trunk (2.3)
JDK: 1.6.0_24
DB: Oracle 11.1.0.7
When set "eclipselink.weaving.fetchgroups=false", and all other options keep
default level. There are two tests in JPA-SRG
(org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite)
failed with the following error:

1. testIsLoadedWithoutReference
   ----------------------------     

junit.framework.AssertionFailedError: ProviderUtil did not return NOT_LOADED for isLoaded when it should.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testIsLoadedWithoutReference(EntityManagerJUnitTestSuite.java:9715)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)

2. testWeaving
   -----------
junit.framework.AssertionFailedError: Object not weaved for FetchGroupTracker:Employee: null
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.internalTestWeaving(EntityManagerJUnitTestSuite.java:7875)
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:42:35 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 is only the following one failure
occurred:

1. testIsLoadedWithoutReference
   ----------------------------
junit.framework.AssertionFailedError: ProviderUtil did not return NOT_LOADED for isLoaded when it should.
at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testIsLoadedWithoutReference(EntityManagerJUnitTestSuite.java:9715)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:514)
Comment 2 Tom Ware CLA 2011-07-18 13:43:37 EDT
moving targets of 2.3.0 bugs because 2.3.0 has shipped.
Comment 3 Guy Pelletier CLA 2011-08-23 14:33:12 EDT
Created attachment 202026 [details]
Proposed changes

Test changes only to take into consideration that weaving may be on but individual components of weaving may be disabled.
Comment 4 Guy Pelletier CLA 2011-08-24 08:31:05 EDT
Changes have been submitted.

Verified by: Tom Ware
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:23:32 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink