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 255509 - IllegalAccessException: Class java.awt.EventQueue (module java.desktop) can not access a member of class org.netbeans.modules.debugger.jpda.visual.remote.RemoteAWTService with modifiers "public", modu
Summary: IllegalAccessException: Class java.awt.EventQueue (module java.desktop) can n...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: JDK_9, NO81
Depends on:
Blocks: 255515
  Show dependency tree
 
Reported: 2015-09-23 11:45 UTC by Jiri Kovalsky
Modified: 2016-03-10 02:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220136


Attachments
stacktrace (1020 bytes, text/plain)
2015-09-23 11:45 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-09-23 11:45:49 UTC
Build: NetBeans Dev JDK9 branch (Build 20150918-951c25ccfea0)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81, Java(TM) SE Runtime Environment, 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
OS: Linux

User Comments:
jkovalsky: Generated new AnagramGame sample project on JDK 9 with Jigsaw, setup line 97 breakpoint in Anagrams.java file and started debugging session. Breakpoint was hit and this exception thrown.




Stacktrace: 
java.lang.IllegalAccessException: Class java.awt.EventQueue (module java.desktop) can not access a member of class org.netbeans.modules.debugger.jpda.visual.remote.RemoteAWTService with modifiers "public", module java.desktop (strict module) does not read <unnamed module @3932c9ea>
   at sun.reflect.Reflection.throwIllegalAccessException(Reflection.java:453)
   at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:128)
   at java.lang.Class.newInstance(Class.java:520)
   at java.awt.EventQueue.getNextEvent(EventQueue.java:549)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:166)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
Comment 1 Jiri Kovalsky 2015-09-23 11:45:51 UTC
Created attachment 156379 [details]
stacktrace
Comment 2 Jiri Kovalsky 2015-09-23 11:48:53 UTC
This is not 8.1 related issue.
Comment 3 Jiri Kovalsky 2015-09-23 11:50:28 UTC
Reassigned for further evaluation.
Comment 4 Martin Entlicher 2015-09-25 17:44:17 UTC
This is caused by access restrictions introduced by Jigsaw.
We need to figure out if we can inject our classes into java.desktop module so that they can be accessed.
Comment 5 Martin Entlicher 2016-03-09 16:23:28 UTC
Fixed by changeset:   296002:2b43e4370aaa
http://hg.netbeans.org/core-main/rev/2b43e4370aaa
Comment 6 Quality Engineering 2016-03-10 02:00:58 UTC
Integrated into 'main-silver', will be available in build *201603100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2b43e4370aaa
User: mentlicher@netbeans.org
Log: #255509: Use a different approach to prepare the class.