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

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

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;
        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
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.

java.lang.IllegalStateException: Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.
Comment 1 chenar 2017-09-22 23:26:56 UTC
Created attachment 165163 [details]
Comment 2 Exceptions Reporter 2017-09-28 09:08:38 UTC
Created attachment 165198 [details]

Tried out simple module POC