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

Adapt JFR source code for dummy jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • None
    • hotspot
    • None
    • jfr
    • 9
    • b150

      WebLogic uses a dummy version of the JFR APIs that is compiled against JDK 8. This is to simplify their use of both the JDK 8 and JDK 9 APIs.

      Much of the work to compile against JDK 8 was done in JDK-8152148, but it turns out that the dummy jar doesn't handle Unsafe being moved to jdk.internal.misc, leading to an unexpected NoClassDefFoundError.

      I have a fix ready that allows the API to be queried for JFR capability (FlightRecorder.isAvailable) without throwing an exception.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: