Accessing module internals from bytecode rewriting agent

Alan Bateman Alan.Bateman at
Thu Jun 15 08:21:26 UTC 2017

On 15/06/2017 01:00, Jeremy Manson wrote:
> :
> The upshot is that, in the same way as we would have turned on the big 
> kill switch by default to ease the transition, we are also likely to 
> implement -Xbootclasspath/p to ease the transition.
You might find it easier to add --patch-module to your JDK 8 build 
instead. It's easy to translate a sequence of `--patch-module 
<module>=<file>(<pathsep><file>)*` options to one 
`-Xbootclasspath/p:<file>(<pathsep><file>)*`. Going the other way is not 
easy, esp. if -Xbootclasspath/p is called with a directory or JAR file 
containing classes or resources in "new" packages or where there are 
classes that are no longer defined to the boot class loader.


More information about the core-libs-dev mailing list