Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20282

Byteman based tests fail on JDK24 when attempting to install policy into JDK

XMLWordPrintable

      Both CoreBridgeCallTimeoutTestCase and CriticalAnalyzerTestCase are failing on JDK24
      because these tests are attempting to install Policy object into JDK via byteman configuration.
      It is not necessary to install Policy into JDK for tests to function properly.

      The failure description is:

      Caused by: java.lang.UnsupportedOperationException: Setting a system-wide Policy object is not supported
      <------>at java.base/java.security.Policy.setPolicy(Policy.java:114)
      <------>at org.jboss.byteman.agent.Transformer.installPolicy(Transformer.java:151)
      <------>at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      <------>... 6 more

              ropalka Richard Opalka
              ropalka Richard Opalka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: