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

Summary: IllegalStateException: Cannot use Elements.getTypeElementByBinaryName before the TaskEvent.Kind.ENTER finished event.
Product: java Reporter: Jiri Prox <jiriprox>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: chenar, java1cprog, terje7601
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229231
Attachments: stacktrace

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