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

Proxy class initializer should use 3-arg `Class.forName` to avoid unnecessary class initialization

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • 19
    • core-libs
    • None

      `<clinit>` of the generated proxy classes calls 1-arg `Class::forName` to get the parameter types for each method during the process to find all Methods and cache them. This causes the initialization of all parameter types of all methods implemented by the proxy class. It can call the 3-arg `Class.forName` to avoid unnecessary class initialization.

            rriggs Roger Riggs
            mchung Mandy Chung (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: