On 03/06/2017 05:11, Stephen Felts wrote:
The latest version of Jigsaw available from http://jdk.java.net/jigsaw/
(jdk-9+172 on 06-02-2017 (#6472)) has
--illegal-access=<value>
permit or deny access to members of types in named
modules
by code in unnamed modules.
<value> is one of "deny", "permit", "warn", or "debug"
This option will be removed in a future release.
Note that --permit-illegal-access is removed.
No, it's has not been removed, at least not yet. For now,
`--permit-illegal-access` is an alias for `--illegal-access=warn` in the
Jigsaw EA builds.
This is what the output looks like. Ironically, this code in the standalone
bind implementation jar has fall-back code for running correctly on JDK9.
I think the issue you are running into is missing or incorrect version
detection in the standalone JAXB implementation. From what I can tell
then it relies on the InaccessibleObjectExceptionto to detect it is on
JDK 9. I'm sure that can be easily fixed.
:
There is no quiet option. To get rid of these warnings, you need to explicitly
run with java --illegal-access=deny (assuming there are no other illegal
access problems).
Mark will be sending a summary/update on the proposal soon. It's
probably best to wait for that write-up.
-Alan