eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.27k stars 721 forks source link

jdk_nio_0_FAILED java/nio/channels/DatagramChannel/Disconnect.java cannot find symbol InetAddress.ofLiteral() #20115

Open JasonFengJ9 opened 1 week ago

JasonFengJ9 commented 1 week ago

Failure link

From an internal build(rtj-ubu24aarch64-svl-test-azhd9-1):

java version "17.0.13-beta" 2024-10-15
IBM Semeru Runtime Certified Edition 17.0.13+5-202409032306 (build 17.0.13-beta+5-202409032306)
Eclipse OpenJ9 VM 17.0.13+5-202409032306 (build master-c28eae6679, JRE 17 Linux aarch64-64-Bit Compressed References 20240903_750 (JIT enabled, AOT enabled)
OpenJ9   - c28eae6679
OMR      - 6dc282ee5
JCL      - 6e6abb397b based on jdk-17.0.13+5)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2024-09-04T02:00:17.228Z] variation: Mode150
[2024-09-04T02:00:17.228Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

[2024-09-04T02:01:57.710Z] TEST: java/nio/channels/DatagramChannel/Disconnect.java

[2024-09-04T02:01:57.711Z] /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_aarch64_linux_testList_0/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/nio/channels/DatagramChannel/Disconnect.java:55: error: cannot find symbol
[2024-09-04T02:01:57.711Z]                 InetAddress lo4 = InetAddress.ofLiteral("127.0.0.1");
[2024-09-04T02:01:57.711Z]                                              ^
[2024-09-04T02:01:57.711Z]   symbol:   method ofLiteral(String)
[2024-09-04T02:01:57.711Z]   location: class InetAddress
[2024-09-04T02:01:57.711Z] /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_aarch64_linux_testList_0/aqa-tests/openjdk/openjdk-jdk/test/jdk/java/nio/channels/DatagramChannel/Disconnect.java:65: error: cannot find symbol
[2024-09-04T02:01:57.711Z]                 InetAddress lo6 = InetAddress.ofLiteral("::1");
[2024-09-04T02:01:57.711Z]                                              ^
[2024-09-04T02:01:57.711Z]   symbol:   method ofLiteral(String)
[2024-09-04T02:01:57.711Z]   location: class InetAddress
[2024-09-04T02:01:57.711Z] 2 errors
[2024-09-04T02:01:57.711Z] 
[2024-09-04T02:01:57.711Z] TEST RESULT: Failed. Compilation failed: Compilation failed
[2024-09-04T02:01:57.711Z] --------------------------------------------------
[2024-09-04T02:09:15.296Z] Test results: passed: 444; failed: 1
[2024-09-04T02:09:32.639Z] Report written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_aarch64_linux_testList_0/aqa-tests/TKG/output_17254149381283/jdk_nio_0/report/html/report.html
[2024-09-04T02:09:32.639Z] Results written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_aarch64_linux_testList_0/aqa-tests/TKG/output_17254149381283/jdk_nio_0/work
[2024-09-04T02:09:32.639Z] Error: Some tests failed or other problems occurred.
[2024-09-04T02:09:32.639Z] -----------------------------------
[2024-09-04T02:09:32.639Z] jdk_nio_0_FAILED
pshipton commented 1 week ago

InetAddress.ofLiteral() is added in jdk22. Seems like an OpenJDK bad backport of the test, probably will be fixed in a future OpenJDK update. I don't see a fix in 17,0.13+6. We could exclude the test until it's fixed.