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.
Original status: 1-Dispatched; Suggested Status: NEW Original Target Release: ; Suggested Target Milestone : 5.5 Description: FULL PRODUCT VERSION : C:\Programme\Java\jdk1.6.0\bin>java -version java version "1.6.0-beta2" Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86) Java HotSpot(TM) Client VM (build 1.6.0-beta2-b86, mixed mode, sharing) NetBeans Beta2 runs on JDK 5.0: C:\Programme\Java>java -version java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01) Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing) FULL OS VERSION : Windows XP SP-2 EXTRA RELEVANT SYSTEM CONFIGURATION : Run source code within NetBeans 5.5 Beta 2 (using JDK 5.0_09) Using Microsoft Access database All files of sun.jdbc.odbc package are copied to folder "src" of NetBeans project <--- file: project.properties ---> application.args= build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results debug.classpath= ${run.classpath} debug.test.classpath= ${run.test.classpath} # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/jdk6.0_JdbcOdbcBugs.jar dist.javadoc.dir=${dist.dir}/javadoc jar.compress=true javac.classpath= # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false javac.source=1.5 javac.target=1.5 javac.test.classpath= ${javac.classpath}: ${build.classes.dir}: ${libs.junit.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding= javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=false javadoc.splitindex=true javadoc.use=true javadoc.version=false javadoc.windowtitle= main.class= meta.inf.dir=${src.dir}/META-INF platform.active=JDK_1.6.0-beta2-b86 run.classpath= ${javac.classpath}: ${build.classes.dir} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value # or test-sys-prop.name=value to set system properties for unit tests): run.jvmargs=-Xbootclasspath/p:${build.classes.dir} run.test.classpath= ${javac.test.classpath}: ${build.test.classes.dir} src.dir=src test.src.dir=test A DESCRIPTION OF THE PROBLEM : See source code. THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Run NetBeans 5.5 Beta 2 Choose project properties and set Java Platform to "JDK 1.6.0-beta2-b86" Within NetBeans 5.5 Beta 2 try several times in short and long intervals: - right-click on project's node - click "Test Project" --- runs sometimes --- Then choose project properties and set Java Platform to "JDK 1.5 (default)" (Do not build project before) - right-click on project's node - click "Test Project" --- runs always --- EXPECTED VERSUS ACTUAL BEHAVIOR : Attached seperatly REPRODUCIBILITY : This bug can be reproduced often. ---------- BEGIN SOURCE ---------- Attached seperatly ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : static { System.out.println("JDK Version: "+System.getProperty("java.version")); // try { // Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // Obsolete in JDK 6.0 // } // catch (Exception e) { e.printStackTrace(); } }
Created attachment 35066 [details] Output Log File
Created attachment 35067 [details] Source Information
Sorry, but this seems to me to be a JDK bug, not NB IDE bug. Do I miss something?
I also think, it's a JDK-Bug, but it was moved to NetBeans by Sun. Here was my original Bug-Report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6480021 ... but it was deleted as a couple of other Bugs I posted. I can't understand, why they delete so much bugs, especially those about the JDBC-ODBC-Driver.
Java editor can't really not do much with this.
Could you please reopen (I don't have the rights from outside Sun): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6480021 and additionally force to make it publicly visible, so I can see the progress.