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.
If you assume java.version means anything, you may be wrong. It is not guaranteed to be in any particular format. java.specification.version is more reliable; to use this, it is easiest to use code such as: import org.openide.modules.*; if (Dependency.JAVA_SPEC.compareTo(new SpecificationVersion("1.3")) >= 0) { // 1.3 or higher } else { // pre-1.3 } The following classes are possible offenders: org.netbeans.modules.debugger.support.util.Utils org.netbeans.modules.debugger.support.java.JavaElementSelector org.netbeans.modules.debugger.jpda.Launcher
Fixed in JavaElementSelector and Launcher. In Utils we need to detect java version rather than specification version to set classic switch appropriately to avoid some serious problems with debugging on HotSpot.
Closed.