Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202583

Remove experimental ClassForNamePlugin

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • tools
    • 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.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: