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.
Can we do something about this please? JDK 6 will be out soon, and there will be people who only have JDK 6 on their machines, and NetBeans won't compile. It appears this is because DatabaseMetaData was incompatibly changed in JDK 6; I'd suggest filing a P1 bug against the JDK, because they really shouldn't ship that. Since the new methods include a method that returns java.sql.RowIdLifetime, I don't see any handy way to patch DefaultAdaptor for that method; on the other hand, I've written the same patch to it for the third time today, so that I could compile NetBeans with JDK 6. So I will attach it. The best I can think of for how to solve the problem is: - to put the .class file for DefaultAdaptor, with this patch, compiled on JDK 6, into CVS - add a pre-compile step to the build script to copy it into the right place in build/classes and touch it so it has a new file date, before the compile step It should probably be fixed in the JDK, but we should at least have some reasonable workaround so NetBeans is compilable - for people who try to compile NetBeans and don't understand the problem, it is we who look stupid, not the JDK engineers even if they caused the problem. Cc'ing Jarda in case he has some better idea for how to work around this issue.
Created attachment 33301 [details] Patch usable on JDK 6
Another approach could be the one I proposed in issue 60508: have a jar file with a fake RowIdLifetime on the compilation classpath for pre-1.6 JDKs. Not sure which one is better.
Let's close this issue and track it in the older issue 60508. *** This issue has been marked as a duplicate of 60508 ***