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

HotRodClientJmxTest.testRemoteCacheManagerMBean fails on Java 14

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.berindei Dan Berindei
                Reporter:
                dan.berindei Dan Berindei
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: