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@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
