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 267602 - IllegalStateException: Cannot use Elements.getModuleElement before the TaskEvent.Kind.ENTER finished event.
Summary: IllegalStateException: Cannot use Elements.getModuleElement before the TaskEv...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2016-08-16 12:47 UTC by rahmanusta
Modified: 2016-10-11 01:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 225771


Attachments
stacktrace (4.67 KB, text/plain)
2016-08-16 12:47 UTC, rahmanusta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rahmanusta 2016-08-16 12:47:00 UTC
This issue was reported manually by mbalin.
It already has 1 duplicates 


Build: NetBeans IDE Dev JDK9 Branch (Build 201608150404)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+129-jigsaw-nightly-h5343-20160802, Java(TM) SE Runtime Environment, 9-ea+129-jigsaw-nightly-h5343-20160802
OS: Windows 7

User Comments:
rahmanusta: When opening Java 9 Module project that created new, causes this issue.




Stacktrace: 
java.lang.IllegalStateException: Cannot use Elements.getModuleElement before the TaskEvent.Kind.ENTER finished event.
   at com.sun.tools.javac.model.JavacElements.ensureEntered(JavacElements.java:709)
   at com.sun.tools.javac.model.JavacElements.getModuleElement(JavacElements.java:105)
   at com.sun.tools.javac.model.JavacElements.getModuleElement(JavacElements.java:70)
   at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.resolveModule(ModuleClassPaths.java:852)
   at org.netbeans.modules.java.api.common.classpath.ModuleClassPaths$ModuleInfoClassPathImplementation.lambda$getResources$17(ModuleClassPaths.java:621)
   at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83)
Comment 1 rahmanusta 2016-08-16 12:47:02 UTC
Created attachment 161674 [details]
stacktrace
Comment 2 Tomas Zezula 2016-08-29 08:52:58 UTC
Fixed jet-main (jdk9) f6209f723cb3
Comment 3 Quality Engineering 2016-10-11 01:59:00 UTC
Integrated into 'main-silver', will be available in build *201610110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f6209f723cb3
User: Tomas Zezula <tzezula@netbeans.org>
Log: #267602:IllegalStateException: Cannot use Elements.getModuleElement before the TaskEvent.Kind.ENTER finished event.