Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15736 Support Java 17 (LTS)
  3. FLINK-31911

Bad address construction in SqlClientTest

    XMLWordPrintableJSON

Details

    Description

      The SqlClientTest constructs a host:port pair with this:

      InetSocketAddress.createUnresolved(
                                          SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetAddress(),
                                          SQL_GATEWAY_REST_ENDPOINT_EXTENSION.getTargetPort())
                                  .toString()
      

      This is unnecessarily complicated and fails on Java 17 because the toString representation is not guaranteed to return something of the form host:port.

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: