Bug 236522 - NullPointerException at com.sun.tools.javac.comp.Attr.visitTry
NullPointerException at com.sun.tools.javac.comp.Attr.visitTry
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
7.4
All All
: P3 (vote)
: TBD
Assigned To: Dusan Balek
issues@java
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-29 17:04 UTC by faramir2
Modified: 2013-09-29 17:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
stacktrace (3.12 KB, text/plain)
2013-09-29 17:04 UTC, faramir2
Details

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

Build: NetBeans IDE 7.4 RC1 (Build 201309162201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b50, Java(TM) SE Runtime Environment, 1.8.0-ea-b108
OS: Windows 7

User Comments:
faramir2: I don't know how can I reproduce this one, but I copied one .java file WaitTests.java (with public static void main(String[] args) method) to new file LockTets.java (both files were in waittests source package). Then I changed Object to Lock and assigned ReentrantLock. Then I pressed CTRL+SHIFT+I and then I had problem - it was unable to click OK or Cancel; moreover, window shows unknown class 'i' but I had 'i' only as variable name and 'int' was before. I was able to close that window by pressing ESC key. After some time, after pressing CTRL+SHIFT+I again, I was able to fix import, but I had problem with code completion and code assistant (empty, not showing...)




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.Attr.visitTry(Attr.java:1416)
   at com.sun.tools.javac.tree.JCTree$JCTry.accept(JCTree.java:1173)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:589)
   at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:658)
   at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:674)
   at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1159)
Comment 1 faramir2 2013-09-29 17:04:05 UTC
Created attachment 140624 [details]
stacktrace


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo