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.

Bug 83540 - DefaultAdaptor prevents compiling NetBeans on JDK 6
Summary: DefaultAdaptor prevents compiling NetBeans on JDK 6
Status: RESOLVED DUPLICATE of bug 60508
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-27 20:12 UTC by _ tboudreau
Modified: 2006-10-23 15:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch usable on JDK 6 (2.41 KB, patch)
2006-08-27 20:12 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-08-27 20:12:14 UTC
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.
Comment 1 _ tboudreau 2006-08-27 20:12:56 UTC
Created attachment 33301 [details]
Patch usable on JDK 6
Comment 2 Andrei Badea 2006-09-06 16:02:58 UTC
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.
Comment 3 Andrei Badea 2006-09-07 16:50:26 UTC
Let's close this issue and track it in the older issue 60508.


*** This issue has been marked as a duplicate of 60508 ***