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

Field::getGenericType triggers loading and linking that may fail with LinkageError

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 14
    • 14
    • core-libs
    • None

      The changes in JDK 14 via JDK-8212117 to align Class.forName with its specification may need follow on work in the core reflection code that obtains the Type of a field with parameterized type.

      The sighting on core-libs-dev is here:
        https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-October/062747.html

      In the example, Service can be loaded but not linked. It may be that makeNamedType needs to catch NoClassDefFoundError so that TypeNotPresentException can be thrown.

          Loading...
          Uploaded image for project: 'JDK'
          1. JDK
          2. JDK-8231924

          Field::getGenericType triggers loading and linking that may fail with LinkageError

            • Icon: Bug Bug
            • Resolution: Duplicate
            • Icon: P2 P2
            • 14
            • 14
            • core-libs
            • None

              The changes in JDK 14 via JDK-8212117 to align Class.forName with its specification may need follow on work in the core reflection code that obtains the Type of a field with parameterized type.

              The sighting on core-libs-dev is here:
                https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-October/062747.html

              In the example, Service can be loaded but not linked. It may be that makeNamedType needs to catch NoClassDefFoundError so that TypeNotPresentException can be thrown.

                    bchristi Brent Christian
                    alanb Alan Bateman
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    5 Start watching this issue

                      Created:
                      Updated:
                      Resolved:

                        bchristi Brent Christian
                        alanb Alan Bateman
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        5 Start watching this issue

                          Created:
                          Updated:
                          Resolved: