Jump to: navigation, search

Difference between revisions of "EclipseLink/Development/Java6"

(What is working)
m (Java SE 6 Integration)
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Java SE 6 Integration==
 
==Java SE 6 Integration==
This section describes current issues and resolutions for compiling and running EclipseLink on a Sun Java 6 JRE (currently 1.6.0_03-b05).
 
(Disclaimer: this page is under construction as of 20080202)
 
  
 +
This section describes current issues and resolutions for compiling and running EclipseLink on a Sun Java 6 JRE (currently 1.6.0_07).
  
 +
See [http://wiki.eclipse.org/EclipseLink/DesignDocs/236185 236185 Java 6 Design Doc.]
  
==What is not working==
+
===What is not working===
The following changes between Java5 and Java6 are causing issues
+
*eclipselink.jpa test  
*eclipselink.jpa test - UnsupportedClassVersionError when classloading the 1.6 compiled classes in core
+
*eclipselink.sdo.test
*eclipselink.sdo.test - class generation failing using 1.6 tools.jar
+
**Class generation fails using 1.6 tools.jar - fix to be verified.
 +
**If recompiling sdo.core with 1.6 - Use Java 6 JDK 1.6.0_10-rc2 (as its classLoader has been fixed)
 +
*eclipselink.moxy - (javax.xml.bind) JAXB 2.0 is now moved from the JWSDP to JDK1.6 - API collisions will need to be sorted out - fix to be verified
 +
 
 +
===Compile-Time Support===
 +
*Compiling under 1.6.0 with a target of 1.5 is working fine.
 +
*There are [https://bugs.eclipse.org/bugs/show_bug.cgi?id=214261 133 errors in 213261] as follows when compiling under 1.6.0 with a target of 1.6 in the following test projects
 +
**eclipselink.core.test
 +
**eclipselink.extension.oracle.test
 +
**New JDBC 4.0 Intefaces - stubs were added
 +
**Changes to the java.sql package in the JDBC 4.0 API added new interface changes that affect our test code using the following classes
 +
***Wrapper, Connection, DataSource, PreparedStatement, Statement and ResultSet
 +
***These changes are not Java SE 5 backwards compatible.
 +
 
 +
===Run-Time Support===
 +
* [http://bugs.eclipse.org/236185 ER 236185: Java6 API Support]
 +
* [http://bugs.eclipse.org/248019 Bug 248019 Java6 JVM The JDK 1.6 JRE classLoader has a 10x slowdown until JDK 1.6.0_10-rc2 for JUnit tests]
 +
 
 +
===Features new to Java 1.6===
 +
*The following features new to Java 1.6 are being considered for the future as enhancements or customer requests.  These features will only be available when we have moved our compile baseline from 1.5 to 1.6.
 +
**[http://java.sun.com/javase/6/docs/technotes/guides/jmx/JMX_1_4_specification.pdf JMX 1.4] ( [http://java.sun.com/javase/6/docs/technotes/guides/jmx/enhancements.html new JMX static class, MXBeans...])
 +
**[http://java.sun.com/products/jdbc/download.html#corespec40 JDBC 4.0 in Java 6] - see the JDBC 4.0 introduction to Java 1.6 as part of the JavaDB introduction - http://java.sun.com/javase/6/docs/api/java/sql/package-summary.html
 +
**[http://java.sun.com/javase/6/docs/technotes/guides/xml/jaxp/JAXP-Compatibility_160.html JAXP 1.4 RI in Java6]

Latest revision as of 11:34, 3 November 2008

Java SE 6 Integration

This section describes current issues and resolutions for compiling and running EclipseLink on a Sun Java 6 JRE (currently 1.6.0_07).

See 236185 Java 6 Design Doc.

What is not working

  • eclipselink.jpa test
  • eclipselink.sdo.test
    • Class generation fails using 1.6 tools.jar - fix to be verified.
    • If recompiling sdo.core with 1.6 - Use Java 6 JDK 1.6.0_10-rc2 (as its classLoader has been fixed)
  • eclipselink.moxy - (javax.xml.bind) JAXB 2.0 is now moved from the JWSDP to JDK1.6 - API collisions will need to be sorted out - fix to be verified

Compile-Time Support

  • Compiling under 1.6.0 with a target of 1.5 is working fine.
  • There are 133 errors in 213261 as follows when compiling under 1.6.0 with a target of 1.6 in the following test projects
    • eclipselink.core.test
    • eclipselink.extension.oracle.test
    • New JDBC 4.0 Intefaces - stubs were added
    • Changes to the java.sql package in the JDBC 4.0 API added new interface changes that affect our test code using the following classes
      • Wrapper, Connection, DataSource, PreparedStatement, Statement and ResultSet
      • These changes are not Java SE 5 backwards compatible.

Run-Time Support

Features new to Java 1.6