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.

Bug 181796 - NullPointerException at com.sun.tools.javac.comp.Attr$1.visitMethodDef
Summary: NullPointerException at com.sun.tools.javac.comp.Attr$1.visitMethodDef
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
: 183841 (view as bug list)
Depends on:
Blocks: 172368
  Show dependency tree
 
Reported: 2010-03-10 12:12 UTC by athompson
Modified: 2012-07-30 20:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165406


Attachments
stacktrace (2.81 KB, text/plain)
2010-03-10 12:12 UTC, athompson
Details
stacktrace (3.49 KB, text/plain)
2010-03-12 05:28 UTC, Alexandr Scherbatiy
Details
stacktrace (3.09 KB, text/plain)
2010-03-19 11:45 UTC, stefan79
Details
The Java-File, where then NPE occured. (178.46 KB, text/plain)
2010-03-19 12:18 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2010-03-10 12:12:16 UTC
Build: NetBeans IDE Dev (Build 201003081350)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
athompson: invoked CC




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Attr$1.visitMethodDef(Attr.java:3022)
   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:660)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
   at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:80)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:588)
Comment 1 athompson 2010-03-10 12:12:23 UTC
Created attachment 95010 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-03-12 05:28:36 UTC
Created attachment 95082 [details]
stacktrace
Comment 3 Alexandr Scherbatiy 2010-03-12 05:30:52 UTC
Steps to reproduce:

- Install NetBeans with the JavaFX plugin
- Open the attached JavaFX project in NetBeans
http://netbeans.org/bugzilla/attachment.cgi?id=95034

- Go to the mathematics.multidimensional package
- Refactor->Rename the IMDVector java class to IMDVector2

The exception pops up.
Comment 4 Alexandr Scherbatiy 2010-03-12 05:31:33 UTC
The issue affects JavaFX refactoring.
Comment 5 stefan79 2010-03-19 11:45:55 UTC
Created attachment 95422 [details]
stacktrace

Switched between 2 Java-Source-Files.
Comment 6 stefan79 2010-03-19 12:18:37 UTC
Created attachment 95427 [details]
The Java-File, where then NPE occured.
Comment 7 Dusan Balek 2010-03-24 16:43:41 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/7fe0b532b8bf

changeset e50044a14186 in main/nb-javac
details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=e50044a14186
Comment 8 Dusan Balek 2010-04-12 10:35:13 UTC
*** Bug 183841 has been marked as a duplicate of this bug. ***