Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338748

[17u,21u] Test Disconnect.java compile error: cannot find symbol after JDK-8299813

XMLWordPrintable

    • 21
    • b01
    • generic
    • generic

        STDERR:
        /var/tmp/tone/run/jtreg/jdk-repo/test/jdk/java/nio/channels/DatagramChannel/Disconnect.java:55: error: cannot find symbol
                        InetAddress lo4 = InetAddress.ofLiteral("127.0.0.1");
                                                     ^
          symbol: method ofLiteral(String)
          location: class InetAddress
        /var/tmp/tone/run/jtreg/jdk-repo/test/jdk/java/nio/channels/DatagramChannel/Disconnect.java:65: error: cannot find symbol
                        InetAddress lo6 = InetAddress.ofLiteral("::1");
                                                     ^
          symbol: method ofLiteral(String)
          location: class InetAddress
        2 errors

        TEST RESULT: Failed. Compilation failed: Compilation failed

        There is no InetAddress.ofLiteral API in jdk21u and jdk17u, the InetAddress.ofLiteral API was added by JDK-8272215 in jdk22. Thus the fix applies only to 21 and older.

              syan Sendao Yan
              syan Sendao Yan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: