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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Test Suite
    • False
    • None
    • False

      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:
              1 Start watching this issue

                Created:
                Updated: