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 271511 - IllegalStateException: Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.
Summary: IllegalStateException: Cannot use Elements.getTypeElement before the TaskEven...
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:
Depends on:
Blocks:
 
Reported: 2017-09-22 23:26 UTC by chenar
Modified: 2018-02-22 23:23 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 229429


Attachments
stacktrace (2.30 KB, text/plain)
2017-09-22 23:26 UTC, chenar
Details
stacktrace (7.33 KB, text/plain)
2017-09-28 09:08 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chenar 2017-09-22 23:26:51 UTC
Build: NetBeans IDE Dev (Build 201709140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Mac OS X

User Comments:
GUEST: void newIEF(String fileName) {
        boolean hasFrame = false;
        for (JInternalFrame frame : jDesktopPane1.getAllFrames()) {
            if (fileName.equals(((InternalFrameText) frame).getFileName())) {
                InternalFrameText1 = (InternalFrameText) frame;
                hasFrame = true;
                break;
            }
        }
        int s = InternalFrameText1.getHeight()
                - InternalFrameText1.getContentPane().getHeight();
        int x = InternalFrameText1.getX() + s;
        int y = InternalFrameText1.getY() + s;
        int w = InternalFrameText1.getWidth();
        int h = InternalFrameText1.getHeight();
        if (!hasFrame) {
            
        }

java1cprog: 1.Create a module with an error (exports open class which was not exist).
2. Create a package com.jdojo.contact.info.
3. Create a class Address into it.

jockel: autocomplete on the flatMap-method

java1cprog: 1.used Java 9 (177)
2. create Project ch2_8
3. create moudle (module module {})
4.create class (package module; public class module{})

chenar: After closing a window returned to previous window where some undefined symbols are underlined red.

rudyment: The exception occurred when i have opened a project with set of JSH files.




Stacktrace: 
java.lang.IllegalStateException: Cannot use Elements.getTypeElement 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.doGetTypeElement(JavacElements.java:168)
   at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:157)
   at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:82)
   at org.netbeans.modules.java.hints.spiimpl.Hacks.parseFQNType(Hacks.java:173)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:548)
Comment 1 chenar 2017-09-22 23:26:56 UTC
Created attachment 165163 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-09-28 09:08:38 UTC
Created attachment 165198 [details]
stacktrace

Tried out simple module POC