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 270714 - IllegalStateException: Cannot use Elements.getTypeElementByBinaryName before the TaskEvent.Kind.ENTER finished event.
Summary: IllegalStateException: Cannot use Elements.getTypeElementByBinaryName before ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 271119 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-23 08:58 UTC by Jiri Prox
Modified: 2017-12-08 22:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 229231


Attachments
stacktrace (3.28 KB, text/plain)
2017-05-23 08:58 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2017-05-23 08:58:37 UTC
Build: NetBeans IDE Dev (Build 201705220001)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+167, Java(TM) SE Runtime Environment, 9-ea+167
OS: Windows 7

User Comments:
jiriprox: ISE when renaming class




Stacktrace: 
java.lang.IllegalStateException: Cannot use Elements.getTypeElementByBinaryName before the TaskEvent.Kind.ENTER finished event.
   at com.sun.tools.javac.model.JavacElements.ensureEntered(JavacElements.java:871)
   at com.sun.tools.javac.model.JavacElements.getTypeElementByBinaryName(JavacElements.java:266)
   at com.sun.tools.javac.model.JavacElements.getTypeElementByBinaryName(JavacElements.java:260)
   at org.netbeans.api.java.source.ElementHandle.getTypeElementByBinaryName(ElementHandle.java:664)
   at org.netbeans.api.java.source.ElementHandle.resolveImpl(ElementHandle.java:167)
   at org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:143)
Comment 1 Jiri Prox 2017-05-23 08:58:39 UTC
Created attachment 164380 [details]
stacktrace
Comment 2 Dusan Balek 2017-05-26 14:35:47 UTC
Do you have a reproducible test case? Thnaks
Comment 3 Dusan Balek 2017-08-11 10:42:22 UTC
*** Bug 271119 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2017-09-28 10:41:38 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=229231