Hi,
I was trying the recent non-jigsaw build 175 of JDK 9. This one now has the
"--illegal-access" setting. But on my German Windows system this has wrong help
text on the command line:
C:\...>java -X
[...]
--permit-illegal-access
Lässt unzulässigen Zugriff für Mitglieder mit den Typen
in den benannten Modulen
nach Code in unbenannten Modulen zu. Diese
Kompatibilitätsoption wird
im nächsten Release entfernt.
[...]
Of course this command line option no longer works:
C:\...>java --permit-illegal-access -version
Unrecognized option: --permit-illegal-access
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
C:\...>java --illegal-access=deny -version
java version "9"
Java(TM) SE Runtime Environment (build 9+175)
Java HotSpot(TM) 64-Bit Server VM (build 9+175, mixed mode)
So I just wanted to give you some feedback that translations are obviously
missing. FYI, the Linux version in English returns the correct text. As build
175 seems to be the first release candidate (it no longer has "-ea" in the
version string), this is something to take care.
FYI, the new version string (just "9") again caused some serious problem in
open source projects. This time Hadoop, see
https://issues.apache.org/jira/browse/HADOOP-14586. Issue is the following
static final constant, leading to NoClassDefFound error and a cascade of
classes no longer initializing:
private static boolean IS_JAVA7_OR_ABOVE =
System.getProperty("java.version").substring(0, 3).compareTo("1.7") >= 0;
Damn! 😊 (the above code is IMHO just horrible wrong, never ever do something
like this). In a ddition, it no even has a doPrivileged!
Uwe
-----
Uwe Schindler
[email protected]
ASF Member, Apache Lucene PMC / Committer
Bremen, Germany
http://lucene.apache.org/