-Xaddreads does not work on javac
deven you
youdwei at linux.vnet.ibm.com
Thu Oct 22 07:15:54 UTC 2015
Hi All,
>From the JEP261[1], the -XaddReads should be work at both compile and
runtime but the below testing shows, javac won't work:
testuser at amdtest25:~/chandra/prgs/greetings_patch$
/home/testuser/chandra/sdk/bin/javac -XaddReads:com.greetings=com.hello
-modulepath mods -d mods/com.greetings
src/com.greetings/com/greetings/Main.java src/com.greetings/module-info.java
javac: invalid flag: -XaddReads:com.greetings=com.hello
Usage: javac <options> <source files>
use -help for a list of possible options
javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options
I did a more dig and found that use java -X show -XaddReads is in the
option list meanwhile javac -X show it is not in the javac option list. I
wonder if this feautre will be implementd sometime in the future?
Thanks a lot
[1] http://openjdk.java.net/jeps/261
More information about the jigsaw-dev
mailing list