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

Remove experimental ClassForNamePlugin

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: