RFR: 8202583: Remove experimental ClassForNamePlugin

Claes Redestad claes.redestad at oracle.com
Mon May 7 13:23:47 UTC 2018


Hi,

the --class-for-name jlink plugin was added as an experiment to test and 
evolve the jlink plugin infrastructure. The actual effect of enabling 
this plugin on standard images is very limited (only a handful of 
Class.forName:s are replaced) and turns out it can be a breaking change 
since replacing a Class.forName isn't semantically identical with an ldc 
of the class (the latter won't trigger class initialization).

Thus, since this plugin isn't very profitable and potentially dangerous, 
I suggest removing it: http://cr.openjdk.java.net/~redestad/8202583/open.00/

An open question is whether a CSR is required to remove this.

Thanks!

/Claes




More information about the core-libs-dev mailing list