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.
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105 OS: Linux, 2.6.15-1-686-smp, i386 User Comments: Stacktrace: java.lang.NullPointerException
Created attachment 67414 [details] stacktrace
Reassigning to java.
Created attachment 67499 [details] stacktrace
Build: NetBeans IDE Dev (Build 080828) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237 OS: Mac OS X, 10.5.4, i386 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitVarDef(Flow.java:746) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:713) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:499) at com.sun.tools.javac.comp.Flow.scanDef(Flow.java:485) at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:593)
Created attachment 68664 [details] stacktrace
Created attachment 68665 [details] .dump file which hopefully helps reproduce the problem (not valid source, I was in the middle of editing when error happened)
Build: NetBeans IDE Dev (Build 200809020201) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows Vista, 6.0, x86 User Comments: copying and pasting in source code Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitVarDef(Flow.java:746) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:713) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:499) at com.sun.tools.javac.comp.Flow.scanDef(Flow.java:485) at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:593)
Created attachment 68913 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809081401) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows Vista, 6.0, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitVarDef(Flow.java:746) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:713) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:499) at com.sun.tools.javac.comp.Flow.scanDef(Flow.java:485) at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:593)
Created attachment 69699 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809220201) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Linux, 2.6.26.3-14.fc8, i386 User Comments: Editing a jsp file Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitVarDef(Flow.java:746) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:713) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:499) at com.sun.tools.javac.comp.Flow.scanDef(Flow.java:485) at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:632)
Created attachment 70831 [details] stacktrace
This issue has already 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=85106
A reproducible test case would be appreciated.
fsoares, could you please attach one of the dump files generated into your ${nb.userdir}/var/log folder? Thanks.
Should be fixed together with #156470.
Please note: if someone takes the new javac (s)he must include also fix for #151422 otherwise things will be broken.
verified in Product Version: NetBeans IDE Dev (Build 20090113073351) Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb)
Petre, changeset has been reported in issue 156470.
As was mentioned in both third and fourth comments above, this issue have to be fixed together with IZ#156470 and IZ#151422 but the issue 151422 isn't suitable a candidate for a patch.
petr, issue 151422 has 32 duplicates - I think it's suitable for patch 2 as well.
Removed from a patch after discussion with QA.
Reopening - reproduced in NetBeans IDE Dev (Build 200901200201) http://statistics.netbeans.org/exceptions/detail.do?id=85106
Fixed. changeset a0fc84df254f in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=a0fc84df254f changeset 8409d17a9684 in main details: http://hg.netbeans.org/main?cmd=changeset;node=8409d17a9684
Integrated into 'main-golden', will be available in build *200901230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8409d17a9684 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #143923 and #144011 fixed.
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) Platform, Standard Edition for Business, 1.6.0_10-b33 OS: SunOS, 5.11, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitVarDef(Flow.java:746) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:713) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:499) at com.sun.tools.javac.comp.Flow.scanStats(Flow.java:507) at com.sun.tools.javac.comp.Flow.visitBlock(Flow.java:758)
Created attachment 79535 [details] stacktrace