IllegalAccessError even when -XaddExports adds ALL-UNNAMED to the reported module/package

2015-12-03 Thread Roel Spilker
Hi, I have a problem using -XaddExports in jigsaw build 94. This is the first build I tried so I don't know if the problem also occurs in earlier versions. In Lombok we use unsupported internal APIs (yes at our own risk) After reading the instructions on http://openjdk.java.net/jeps/261 "Breakin

Re: IllegalAccessError even when -XaddExports adds ALL-UNNAMED to the reported module/package

2015-12-03 Thread Jonathan Gibbons
Roel, To understand the problem, you need to understand something of how javac works. javac is a Java program, and as such it is composed of a set of modules that run in a JVM. The primary module is jdk.compiler, and if you follow the dependencies, you'll see it references java.compiler, and

Re: IllegalAccessError even when -XaddExports adds ALL-UNNAMED to the reported module/package

2015-12-05 Thread Roel Spilker
Thanks, that was it. I must say that the command line got big pretty fast, since I had to export several packages. How about having to possibility of adding an export to all packages in a module? -XaddExports:jdk.compiler/*=ALL-UNNAMED On Dec 4, 2015 2:48 AM, "Jonathan Gibbons" wrote: > Roel, >

Re: IllegalAccessError even when -XaddExports adds ALL-UNNAMED to the reported module/package

2015-12-05 Thread Alan Bateman
On 05/12/2015 09:03, Roel Spilker wrote: Thanks, that was it. I must say that the command line got big pretty fast, since I had to export several packages. How about having to possibility of adding an export to all packages in a module? -XaddExports:jdk.compiler/*=ALL-UNNAMED That makes it a b