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 Dev (Build 200809031401) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Windows XP, 5.1, x86 User Comments: Just copied ~20 lines by ctrl-c ctrl-v in java editor Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:604) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) 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 69064 [details] stacktrace
Reassigning to java.
*** Issue 146206 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE Dev (Build 200809051401) 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.comp.Flow.visitClassDef(Flow.java:604) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) 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 69243 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809031401) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:604) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) 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 69296 [details] stacktrace
Created attachment 69300 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809071401) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows 2003, 5.2, x86 User Comments: When I select multi-rows in editor, and try to duplicate these line using short key (ctrl+alt+<downArrow> standard eclipse keymap), then this happed. OS: Windows2003 server Version of Netbeans: development version 200809071401 JDK:1.6u7 Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:604) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) 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 69801 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809071401) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows 2003, 5.2, x86 User Comments: Re-description: When I select a whole block of a sub class,such as: ... private class SubClass extends ViewPanel{ public SubClass(){ super(false); } @Override ... } ... in editor, and try to duplicate these lines in below, using short key(Eclipse key map): Ctrl+Alt+DownArrow, then this happened! Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:604) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) 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 69802 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809121401) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b31 OS: Windows Vista, 6.0, x86 User Comments: Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:574) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.comp.Flow.visitNewClass(Flow.java:1145) at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1350) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
Created attachment 69836 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809081401) VM: Java HotSpot(TM) Client VM, 1.5.0_13-121, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-241 OS: Mac OS X, 10.4.11, i386 User Comments: jbaker: Editing text and I accidently selected some text and replaced the text with other text. exlons: When I select multi-rows in editor, and try to duplicate these line using short key (ctrl+alt+<downArrow> standard eclipse keymap), then this happed. OS: Windows2003 server Version of Netbeans: development version 200809071401 JDK:1.6u7 exlons: Re-description: When I select a whole block of a sub class,such as: ... private class SubClass extends ViewPanel{ public SubClass(){ super(false); } @Override ... } ... in editor, and try to duplicate these lines in below, using short key(Eclipse key map): Ctrl+Alt+DownArrow, then this happened! GUEST: Occured when copying and pasting source code. ulfzibis: Happened on Startup jbaker: Editing text and I accidently selected some text and replaced the text with other text. Stacktrace: java.lang.NullPointerException at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:574) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588) 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)
15 duplicates.
Should be fixed in the current dev build.
changeset 5fba960e7e1d in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=5fba960e7e1d 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.
Build: NetBeans IDE 6.7 Beta (Build 200904242137) 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: org.netbeans.modules.parsing.spi.ParseException at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:191) at org.netbeans.modules.parsing.impl.TaskProcessor.runWhenScanFinished(TaskProcessor.java:220) at org.netbeans.modules.parsing.api.ParserManager.parseWhenScanFinished(ParserManager.java:106) at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:277) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 81110 [details] stacktrace
See http://statistics.netbeans.org/analytics/exception.do?id=196033
Created attachment 81111 [details] Broken file
P1 since the issue has more then 50 report exceptions.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/da9eb37ee0df changeset c0b9686c2469 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=c0b9686c2469
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/da9eb37ee0df User: Dusan Balek <dbalek@netbeans.org> Log: Issues #146205, #153664, #161870, #161915, #162097, #162302, #162451, #163931, and #163989 fixed.