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 225027 - NullPointerException at com.sun.tools.javac.comp.MemberEnter.getMethodEnv
Summary: NullPointerException at com.sun.tools.javac.comp.MemberEnter.getMethodEnv
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-17 13:26 UTC by Alexander Simon
Modified: 2015-09-17 11:22 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 189382


Attachments
stacktrace (3.01 KB, text/plain)
2013-01-17 13:26 UTC, Alexander Simon
Details
stacktrace (1.98 KB, text/plain)
2013-01-17 13:28 UTC, Alexander Simon
Details
stacktrace (1.98 KB, text/plain)
2013-02-04 11:58 UTC, misterm
Details
stacktrace (1.98 KB, text/plain)
2013-02-04 12:04 UTC, misterm
Details
stacktrace (1.98 KB, text/plain)
2013-02-04 12:07 UTC, misterm
Details
stacktrace (2.06 KB, text/plain)
2013-02-04 13:01 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-01-17 13:26:11 UTC
This bug was originally marked as duplicate of bug 146416, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20130117-dd3f9558c33d)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: SunOS

Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.MemberEnter.getMethodEnv(MemberEnter.java:896)
   at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:311)
   at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:217)
   at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:84)
   at org.netbeans.api.java.source.TreeUtilities.scopeFor(TreeUtilities.java:501)
   at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$ParseExpressionTask.run(EditorContextImpl.java:2154)
Comment 1 Alexander Simon 2013-01-17 13:26:14 UTC
Created attachment 130330 [details]
stacktrace
Comment 2 Alexander Simon 2013-01-17 13:28:32 UTC
Created attachment 130331 [details]
stacktrace
Comment 3 Alexander Simon 2013-01-21 11:13:52 UTC
P2 because original bug was P2 (and was not fixed)
Comment 4 misterm 2013-02-04 11:58:59 UTC
Created attachment 130994 [details]
stacktrace
Comment 5 misterm 2013-02-04 12:04:58 UTC
Created attachment 130995 [details]
stacktrace
Comment 6 misterm 2013-02-04 12:07:59 UTC
Created attachment 130996 [details]
stacktrace
Comment 7 Petr Cyhelsky 2013-02-04 13:01:59 UTC
Created attachment 131001 [details]
stacktrace
Comment 8 Martin Balin 2015-09-17 11:22:44 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.