RFR: JDK-8212006: javac --release 8 should allow -endorseddirs and -extdirs to be specified

Jan Lahoda jan.lahoda at oracle.com
Mon Nov 19 16:12:41 UTC 2018


The issue here is that -endorseddirs (and -extdirs) is disallowed when 
--release 8 is specified. When there is a user-provided file manager, 
the option handling is more complicated, as currently, at the time we 
are processing the file manager options, it is not yet clear with 
--release is specified, and if -endorseddirs should be passed to the 
file manager that handles the platform classes for --release (or if 
--endorseddirs is even a valid option). So the idea is to do a pass 
through the options, looking for --release, install the --release file 
manager if needed, and then actually process the options, passing them 
to the appropriate file manager(s).

Webrev: http://cr.openjdk.java.net/~jlahoda/8212006/webrev.00/
JBS: https://bugs.openjdk.java.net/browse/JDK-8212006

How does this look?


More information about the compiler-dev mailing list