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

Details

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

    Description

      `<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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: