- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    17, 21
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8340716 | 17.0.14 | Sendao Yan | P3 | Resolved | Fixed | b01 | 
                    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 byJDK-8272215 in jdk22.  Thus the fix applies only to 21 and older.
            
/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
- backported by
- 
                    JDK-8340716 [17u,21u] Test Disconnect.java compile error: cannot find symbol after JDK-8299813 -           
- Resolved
 
-         
- relates to
- 
                    JDK-8299813 java/nio/channels/DatagramChannel/Disconnect.java fails with jtreg test timeout due to lost datagram -           
- Resolved
 
-         
- links to
- 
                     Commit(master)
        openjdk/jdk17u-dev/cf0fea9d Commit(master)
        openjdk/jdk17u-dev/cf0fea9d
- 
                     Commit(master)
        openjdk/jdk21u-dev/ad5656f7 Commit(master)
        openjdk/jdk21u-dev/ad5656f7
- 
                     Review(master)
        openjdk/jdk17u-dev/2861 Review(master)
        openjdk/jdk17u-dev/2861
- 
                     Review(master)
        openjdk/jdk21u-dev/939 Review(master)
        openjdk/jdk21u-dev/939
             (1 links to)