Remove experimental ClassForNamePlugin

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: