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 262356

Summary: IllegalAccessError: class jdk.jshell.JShell (in unnamed module @0x731dd530) cannot access class jdk.internal.jshell.debug.InternalDebugControl (in module jdk.jshell) because module jdk.jshell does not
Product: java Reporter: muellermi <muellermi>
Component: UnsupportedAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 224394
Attachments: stacktrace

Description muellermi 2016-06-07 19:11:32 UTC
Build: NetBeans IDE Dev (Build prototypes-repl-13-on-20160530)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+120-2016-05-26-164250.javare.5074.nc, Java(TM) SE Runtime Environment, 9-ea+120-2016-05-26-164250.javare.5074.nc
OS: Linux

User Comments:
muellermi: try to open java platform shell

muellermi: open java platform shell




Stacktrace: 
java.lang.IllegalAccessError: class jdk.jshell.JShell (in unnamed module @0x731dd530) cannot access class jdk.internal.jshell.debug.InternalDebugControl (in module jdk.jshell) because module jdk.jshell does not export jdk.internal.jshell.debug to unnamed module @0x731dd530
   at jdk.jshell.JShell.debug(JShell.java:624)
   at jdk.jshell.MemoryFileManager.handleOption(MemoryFileManager.java:428)
   at jdk.jshell.TaskFactory.addToClasspath(TaskFactory.java:94)
   at jdk.jshell.JShellAccessor.addCompileClasspath(JShellAccessor.java:66)
   at jdk.jshell.JShellAccessor.resetCompileClasspath(JShellAccessor.java:82)
   at org.netbeans.modules.jshell.support.ShellSession.setupJShellClasspath(ShellSession.java:640)
Comment 1 muellermi 2016-06-07 19:11:35 UTC
Created attachment 159987 [details]
stacktrace
Comment 2 Jaroslav Havlin 2016-06-08 08:46:20 UTC
Svata, can you please evaluate this? Thank you.
Comment 3 Jaroslav Havlin 2016-06-08 08:47:21 UTC
*** Bug 262357 has been marked as a duplicate of this bug. ***
Comment 4 Svata Dedic 2016-06-08 08:58:22 UTC
yes, it is mine; JShell does not yet have a category. JShell support is not yet tested on JDK9: module system boundaries break a lot.