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.
Product Version: NetBeans IDE Dev (Build 20070930084513) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) ------------------------------------------------------------ Testcase: import java.util.Collection; public class Test<S extends Runnable> implements Collection<S> { <T extends S & S> void test() {} } ------------------------------------------------------------ Caused: java.lang.NullPointerException at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:468) at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:467) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1192) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3198) at com.sun.tools.javac.code.Types.isSubtype(Types.java:343) at com.sun.tools.javac.code.Types.isSubtypeNoCapture(Types.java:330) at com.sun.tools.javac.code.Types$5.visitType(Types.java:358) at com.sun.tools.javac.code.Types$5.visitType(Types.java:467) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visitTypeVar(Types.java:3204) at com.sun.tools.javac.code.Type$TypeVar.accept(Type.java:956) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3198) at com.sun.tools.javac.code.Types.isSubtype(Types.java:343) at com.sun.tools.javac.code.Types.isSubtype(Types.java:327) at com.sun.tools.javac.comp.Check.checkExtends(Check.java:442) at com.sun.tools.javac.comp.Check.access$100(Check.java:57) at com.sun.tools.javac.comp.Check$Validator.visitTypeApply(Check.java:825) at com.sun.tools.javac.tree.JCTree$JCTypeApply.accept(JCTree.java:1845) at com.sun.tools.javac.comp.Check.validate(Check.java:760) at com.sun.tools.javac.comp.Check.validate(Check.java:770) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2718) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2691) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2625) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1061) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1037) at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:437) at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:417) at org.netbeans.api.java.source.JavaSource.moveToPhase(JavaSource.java:1189) at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1510) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [catch] at java.lang.Thread.run(Thread.java:619)
Reproducible.
moving opened issues from TM <= 6.1 to TM=Dev
*** Issue 141346 has been marked as a duplicate of this issue. ***
*** Issue 143146 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE Dev (Build 200808051401) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:472) at com.sun.tools.javac.code.Types$5.visitErrorType(Types.java:471) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1193) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3203) at com.sun.tools.javac.code.Types.isSubtype(Types.java:342) at com.sun.tools.javac.code.Types.isSubtypeNoCapture(Types.java:329)
Created attachment 67873 [details] stacktrace
Created attachment 67876 [details] Dump attached as requested by error message
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Windows Server 2008, 6.0, x86 User Comments: Started NB. Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687) at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:686) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1193) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3203) at com.sun.tools.javac.code.Types$6.visitClassType(Types.java:622) at com.sun.tools.javac.code.Types$6.visitClassType(Types.java:686)
Created attachment 69298 [details] stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Windows Server 2008, 6.0, x86 User Comments: Stacktrace: java.lang.NullPointerException
Created attachment 69299 [details] stacktrace
Build: NetBeans IDE Dev (Build 080826) VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26 OS: Linux, 2.6.22-14-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688) at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204) at com.sun.tools.javac.code.Types$6.visitType(Types.java:576) at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Created attachment 69674 [details] stacktrace
Build: NetBeans IDE Dev (Build 080912) VM: Java HotSpot(TM) Client VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04 OS: Linux, 2.6.24-19-generic, i386 User Comments: Had built JSPWiki as an autoproject; then cleaned it. Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688) at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204) at com.sun.tools.javac.code.Types$6.visitType(Types.java:576) at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Created attachment 69788 [details] stacktrace
After this was thrown (numerous times), the project became riddled with error badges and was unusable.
Build: NetBeans IDE Dev (Build 200809140201) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments: Using dev build 200809140201 - NB was rescanning jars that are libraries for opened projects, jars that had been rebuilt externally while NB was open. Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688) at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204) at com.sun.tools.javac.code.Types$6.visitType(Types.java:576) at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Created attachment 69831 [details] stacktrace
Do you have a reproducible test case?
Build: NetBeans IDE Dev (Build 200809151401) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:688) at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:687) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3204) at com.sun.tools.javac.code.Types$6.visitType(Types.java:576) at com.sun.tools.javac.code.Types$6.visitType(Types.java:687)
Created attachment 69947 [details] stacktrace
Fixed. changeset 5441c5d1c7a3 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=5441c5d1c7a3 changeset ab97d442b7a3 in main details: http://hg.netbeans.org/main?cmd=changeset;node=ab97d442b7a3
Integrated into 'main-golden', will be available in build *200810010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ab97d442b7a3 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #117148: NullPointerException at com.sun.tools.javac.code.Types$5.visitErrorType - fixed.
Reopening - reproduced in NetBeans IDE Dev (Build 200810170201) http://statistics.netbeans.org/exceptions/detail.do?id=130910
Second attempt to fix. changeset 439cb9a7e937 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=439cb9a7e937 changeset 601e047de589 in main details: http://hg.netbeans.org/main?cmd=changeset;node=601e047de589
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/601e047de589 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #117148 fixed. Enhanced logging.
*** Issue 151598 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE 6.5 RC1 (Build 200810171318) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.code.Types$.visitErrorType(Types.java:688) at com.sun.tools.javac.code.Types$.visitErrorType(Types.java:687) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1197) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3206) at com.sun.tools.javac.code.Types$.visitType(Types.java:576) at com.sun.tools.javac.code.Types$.visitType(Types.java:687)
Created attachment 73604 [details] stacktrace
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001) http://statistics.netbeans.org/exceptions/detail.do?id=140473
Third attempt. changeset 2b663a426f94 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=2b663a426f94 changeset 09ff15e4aad6 in main details: http://hg.netbeans.org/main?cmd=changeset;node=09ff15e4aad6
Integrated into 'main-golden', will be available in build *200811270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/09ff15e4aad6 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #117148, #142224, #142829, #144800, #147851, and #146205 fixed.