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 73160 - Cannot build NetBeans on JDK 6
Summary: Cannot build NetBeans on JDK 6
Status: RESOLVED DUPLICATE of bug 60508
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-01 20:26 UTC by _ tboudreau
Modified: 2006-06-05 11:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Ugly patch to make NetBeans compilable with JDK 6 (2.76 KB, patch)
2006-03-01 20:26 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-03-01 20:26:28 UTC
Looks like some kind of backward compatibility break on the JDK side - 
DefaultAdaptor doesn't implement a bunch of methods on its parent interface.  
I'll attach a hacked patch that enables me to build NetBeans on JDK 6, though 
it's just implemented to stub the new methods.  I'm guessing some sort of 
super-high priority JDK bug should be filed about this - if you do file it, 
please note issue number before closing.

compile-lib:
    [mkdir] Created dir: C:\space\winsys\db\build\lib-classes
    [javac] Compiling 60 source files to C:\space\winsys\db\build\lib-classes
   [repeat] 
C:\space\winsys\db\libsrc\org\netbeans\lib\ddl\adaptors\DefaultAdapt
or.java:30: org.netbeans.lib.ddl.adaptors.DefaultAdaptor is not abstract and 
doe
s not override abstract method getFunctionParameters
(java.lang.String,java.lang.
String,java.lang.String,java.lang.String) in java.sql.DatabaseMetaData
   [repeat] public class DefaultAdaptor implements DatabaseMetaDataAdaptor, 
Seri
alizable {
   [repeat]        ^
   [repeat] 1 error
  [nbmerge] Failed to build target: all-db

BUILD FAILED
C:\space\winsys\nbbuild\build.xml:562: The following error occurred while 
execut
ing this line:
C:\space\winsys\nbbuild\build.xml:557: The following error occurred while 
execut
ing this line:
C:\space\winsys\nbbuild\build.xml:607: The following error occurred while 
execut
ing this line:
C:\space\winsys\db\build.xml:20: Compile failed; see the compiler error output 
f
or details.
Comment 1 _ tboudreau 2006-03-01 20:26:59 UTC
Created attachment 29074 [details]
Ugly patch to make NetBeans compilable with JDK 6
Comment 2 Andrei Badea 2006-03-02 12:42:25 UTC
Already filed as issue 60508, but thanks for the patch. Note that I can't apply
it, it doesn't compile on JDK 1.5 since it references RowIdLifetime (a 1.6
enum), but I will link to it from issue 60508.

I won't file a bug against JDK for this, I think they're perfectly aware the
change in JDBC 4 is not backwards-compatible. They made an incompatible change
between JDBC 2 and JDBC 3 too (you can see it in DefaultAdaptor).


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