Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12251

HotRodClientJmxTest.testRemoteCacheManagerMBean fails on Java 14

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.0.0.Final
    • 12.0.0.Final
    • Hot Rod, Test Suite
    • None

      HotRodClientJmxTest.testRemoteCacheManagerMBean assumes that the result of InetSocketAddress.toString() for an unresolved address is in the format hostname:port. But the format changed in Java 14, and now the format is hostname/<unresolved>:port.

      java.lang.AssertionError: expected:<localhost:37809> but was:<localhost/<unresolved>:37809>
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:101)
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:108)
      	at org.infinispan.client.hotrod.HotRodClientJmxTest.testRemoteCacheManagerMBean(HotRodClientJmxTest.java:84)
      

      It might be a good idea to change the JMX attribute to only return the hostname instead of changing the test.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: