Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-29420

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.Beta
    • None
    • Test Suite

      Both org.jboss.as.test.manualmode.messaging.CoreBridgeCallTimeoutTestCase and org.jboss.as.test.manualmode.messaging.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
              Jan Kašík Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: