| Summary: | moxy and jaxb tests failed to compile in JDK 1.5 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Praba Vijayaratnam <prabaharan.vijayaratnam> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | blaise.doughan, david.twelves, eclipselink.oxm-inbox, edwin.tang | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 179386 [details]
Patch.
Due to a bug in the JDK with regards to Generics, see: http://forums.sun.com/thread.jspa?threadID=610638 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5003431 Changed test cases. Fixed, reviewed my mmacivor. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Test Env: JDK 1.5.0_22-b03 EclipseLink Trunk ( 2.2.0.v20100826-r8086) Following two traces are related compilation failure and test failures specific to JDK 1.5: compile-tests-against-jar: [echo] Compiling OXM tests... [javac] Compiling 1359 source files to /net/stame10.us.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [echo] [echo] Compiling JAXB tests... [javac] Compiling 684 source files to /net/stame10.us.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/classes [javac] /net/stame10.us.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/dynamic/DynamicJAXBFromOXMTestCases.java:566: java.lang.Object cannot be dereferenced [javac] assertEquals("Property type was not preserved during unmarshal.", Integer.class, readPerson.get("id").getClass()); [javac] ^ [javac] /net/stame10.us.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/dynamic/DynamicJAXBFromOXMTestCases.java:567: java.lang.Object cannot be dereferenced [javac] assertEquals("Property type was not preserved during unmarshal.", Double.class, readPerson.get("salary").getClass()); [javac] ^ [javac] /net/stame10.us.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/dynamic/DynamicJAXBFromXSDTestCases.java:808: java.lang.Object cannot be dereferenced [javac] assertEquals("Property type was not preserved during unmarshal.", Double.class, readPerson.get("salary").getClass()); [javac] ^ [javac] /net/stame10.us.oracle.com/scratch/aime/eclipselink/org.eclipse.persistence/trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/dynamic/DynamicJAXBFromXSDTestCases.java:809: java.lang.Object cannot be dereferenced [javac] assertEquals("Property type was not preserved during unmarshal.", Integer.class, readPerson.get("id").getClass()); [javac] ^ ----------------------------------------- [junit] Running org.eclipse.persistence.testing.oxm.inheritance.InheritanceTestSuite [junit] Exception [EclipseLink-9002] (Eclipse Persistence Services - 2.2.0.v20100908-r8149): org.eclipse.persistence.exceptions.SessionLoaderException [junit] Exception Description: Unable to load Project class [org.eclipse.persistence.testing.jaxb.xmlmarshaller.EmployeeProject]. [junit] Internal Exception: java.lang.ClassNotFoundException: org.eclipse.persistence.testing.jaxb.xmlmarshaller.EmployeeProject [junit] at org.eclipse.persistence.exceptions.SessionLoaderException.failedToLoadProjectClass(SessionLoaderException.java:79) [junit] at org.eclipse.persistence.internal.sessions.factories.SessionsFactory.loadProjectConfig(SessionsFactory.java:313) [junit] at org.eclipse.persistence.internal.sessions.factories.SessionsFactory.createSession(SessionsFactory.java:247) [junit] at org.eclipse.persistence.internal.sessions.factories.SessionsFactory.buildDatabaseSessionConfig(SessionsFactory.java:187) [junit] at org.eclipse.persistence.internal.sessions.factories.SessionsFactory.buildSession(SessionsFactory.java:176) [junit] at org.eclipse.persistence.internal.sessions.factories.SessionsFactory.buildSessionConfigs(SessionsFactory.java:125) [junit] at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.buildSessionConfigs(XMLSessionConfigLoader.java:261) [junit] at org.eclipse.persistence.sessions.factories.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:238) [junit] at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:400) [junit] at org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:207) [junit] at org.eclipse.persistence.testing.oxm.OXTestCase.getXMLContext(OXTestCase.java:117) [junit] at org.eclipse.persistence.testing.oxm.inheritance.InheritanceTestCases.<init>(InheritanceTestCases.java:34) [junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [junit] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [junit] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:501) [junit] at junit.framework.TestSuite.createTest(TestSuite.java:65) [junit] at junit.framework.TestSuite.addTestMethod(TestSuite.java:283) [junit] at junit.framework.TestSuite.<init>(TestSuite.java:146) [junit] at junit.framework.TestSuite.addTestSuite(TestSuite.java:198) [junit] at org.eclipse.persistence.testing.oxm.inheritance.InheritanceTestSuite.suite(InheritanceTestSuite.java:38) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:592) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:356) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768) [junit] Caused by: java.lang.ClassNotFoundException: org.eclipse.persistence.testing.jaxb.xmlmarshaller.EmployeeProject [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) [junit] at org.eclipse.persistence.internal.sessions.factories.SessionsFactory.loadProjectConfig(SessionsFactory.java:310) [junit] ... 26 more