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

Whitebox API should allow compilation of <clinit>

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Environment:

      Whitebox API

    • Subcomponent:
    • Resolved In Build:
      b120

      Description

      Currently, the Whitebox API method enqueueMethodForCompilation() takes a java.lang.reflect.Executable method to compile. Unfortunately, the static initializer <clinit> is not accessible through reflection and compilation can therefore not be triggered by using the Whitebox API.

      This should be fixed to allow tests to trigger compilation of <clinit>.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thartmann Tobias Hartmann
              Reporter:
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: