This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Due to the new methods introduced in JDK6 (Java6, JDBC 4.0), the DefaultAdapter fails to compile. This patch addresses that until futher work can be done on it. Tested with java full version "1.6.0-rc-b60" if anyone cares.
Created attachment 26894 [details] Patch against DefaultAdaptor
Sorry, corrected type-o in the Summary
Thank you for the patch, but it would cause the compilation to fail on pre-1.6 JDKs because of the java.sql.RowIdLifetime return value of getRowIdLifetime(). RowIdLifeitme is an enumeration introduced in 1.6. See also issue 60508. I will probably close this issue as a duplicate of issue 60508, unless you provide a better patch, of course :-)
I didn't provide the build.xml patch because I don't have a lot of experience with or confidence in the NB build system, but I believe that is the solution to these kinds of problems. For an example, look at the way FOP separates out the Java version-specific code: http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/ trunk/src/ NetBeans cannot be the first project to confront this problem; are there best practices anyone knows of?
Seems broken in trunk; at least my build from inside the IDE (running JDK 7) broke on db, even though my nbbuild/user.build.properties specifies nbjdk.home=/space/jdk5. Didn't issue #60508 claim it was fixed? I am confused.
jglick: it was fixed. It broke again when I fixed issue 85352. Thanks for the reproducible use case. I used <available resource="java/sql/RowIdLifetime.class" to detect if RowIdLifetime is on the classpath. In your scenario was erroneously found in the host JDK. Hopefully fixed now, commit log in issue 85352. Please have a look at it if you have the time. Do I get it right that nbjdk.bootclasspath is only defined when a nbjdk.home or nbjdk.active are defined? Closing this issue, please reopen issue 85352 if you still encounter problems.
Works in all 6 combos: with Ant's JDK 5 or 6, and with nbjdk.home 5 or 6 or undefined.