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 271119 - IllegalStateException: Cannot use Elements.getTypeElementByBinaryName before the TaskEvent.Kind.ENTER finished event.
Summary: IllegalStateException: Cannot use Elements.getTypeElementByBinaryName before ...
Status: RESOLVED DUPLICATE of bug 270714
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-18 09:08 UTC by terje7601
Modified: 2017-08-11 10:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227316


Attachments
stacktrace (1.78 KB, text/plain)
2017-07-18 09:08 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2017-07-18 09:08:04 UTC
Build: NetBeans IDE Dev (Build 201706200001)
VM: OpenJDK 64-Bit Server VM, 25.131-b12, OpenJDK Runtime Environment, 1.8.0_131-b12
OS: Linux

User Comments:
GUEST: trying to get code completion on a java.nio.file.Path reference

GUEST: hold control button

GUEST: hold control key

jdlee: Pasting code into interface

GUEST: code completion

jmehrens: Editing MailHandler.java and placing the cursor at the end of a bracket or using the autocomplete will trigger this exception.

terje7601: Java coding




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 org.netbeans.api.java.source.ElementHandle.getTypeElementByBinaryName(ElementHandle.java:663)
   at org.netbeans.api.java.source.ElementHandle.resolveImpl(ElementHandle.java:182)
   at org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:143)
   at org.netbeans.modules.java.editor.overridden.ComputeAnnotations.createAnnotations(ComputeAnnotations.java:136)
Comment 1 terje7601 2017-07-18 09:08:07 UTC
Created attachment 164787 [details]
stacktrace
Comment 2 Dusan Balek 2017-08-11 10:42:22 UTC

*** This bug has been marked as a duplicate of bug 270714 ***