Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6962

OverallInterfaceCriteriaUnitTestCase.testMultipleMatches* test cases fail on Win JDK21

XMLWordPrintable

      This is a clone of a downstream bug report. AFAIK we've never seen the reported issue in testing of WildFly Core, and I suspect even the downstream problem would be corrected by testing with a later version of Windows SE 21. But the downstream fix is simple and valid and only touches the test itself so there's no reason not to do it upstream.

      The downstream report:

      AS-TS tests OverallInterfaceCriteriaUnitTestCase.testMultipleMatches and OverallInterfaceCriteriaUnitTestCase.testMultipleMatchesNoIPVPreference fail on Windows on all the JDK21 vendors

      • openjdk-21
      • oracle-java-21
      • adoptiumjdk-21

      with the stacktrace

      java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "all" is null
      	at org.jboss.as.controller.interfaces.InterfaceCriteriaTestUtil.getRightTypeAddresses(InterfaceCriteriaTestUtil.java:121)
      	at org.jboss.as.controller.interfaces.OverallInterfaceCriteriaUnitTestCase.testMultipleMatches(OverallInterfaceCriteriaUnitTestCase.java:114)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      	at org.junit.runners.model.FrameworkMethod.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:306)
      	at org.junit.runners.BlockJUnit4ClassRunner.evaluate(BlockJUnit4ClassRunner.java:100)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
      ...
      

              bstansbe@redhat.com Brian Stansberry
              dcihak@redhat.com Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: