-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b13
The experimental ClassForNamePlugin was added early during jlink plugin prototyping phase, replacing Class.forName with ldc of a class literal. It's not proven to be very useful as a startup optimization, and likely to result in incorrect behavior since ldc:ing a class literal doesn't ensure class initialization like Class.forName does.
Fixing it might be worthwhile, but likely requires making something like Unsafe.ensureInitialized(Class<?>) a public API point.
Fixing it might be worthwhile, but likely requires making something like Unsafe.ensureInitialized(Class<?>) a public API point.
- relates to
-
JDK-8202729 jlink tool reference: remove listing of unsupported jlink plugins
-
- Resolved
-