| Summary: | with JDK 1.5, in test-oxm and test-jaxb, numerous failures with ClassNotFoundException | ||||||
|---|---|---|---|---|---|---|---|
| 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: | matt.macivor | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Praba Vijayaratnam
The jdk 1.5 test failures are actually caused by a compile error in the tests:
[echo] Compiling JAXB tests...
[javac] Compiling 1473 source files to C:\EclipseLink_Clean\moxy\eclipselink.moxy.test\classes
[javac] C:\EclipseLink_Clean\moxy\eclipselink.moxy.test\src\org\eclipse\persistence\testing\jaxb\dynamic\util\LinkAdapter.java:43: java.lang.Object cannot be dereferenced
[javac] StringTokenizer tokenizer = new StringTokenizer(link.get("href").toString(), "&", false);
[javac] ^
[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.
[javac] 1 error
Because the compile fails, later on many of the test classes aren't there, so a number of ClassNotFoundExceptions are thrown.
Created attachment 207848 [details]
Propsed Test fix
Fixes the compile error so most tests now run and pass. There are still several JAXB and OXM failures with 1.5. Will open another bug to track those.
Attached Patch checked in to SVN. Reviewed by Blaise Doughan The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |