Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045760 | 8u25 | Michael McMahon | P3 | Resolved | Fixed | b01 |
JDK-8042446 | 8u20 | Michael McMahon | P3 | Resolved | Fixed | b15 |
JDK-8053589 | emb-8u26 | Michael McMahon | P3 | Resolved | Fixed | b17 |
A recent change, JDK-8040747, increased the test coverage in this area, and now textToNumericFormat.java can be seen to fail on several platforms, Solaris and Mac, with
java.lang.RuntimeException: Bad Address parsed: [4294967296]
at textToNumericFormat.main(textToNumericFormat.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:484)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(M
The source change inJDK-8040747 appears correct, but it also expands the test coverage to include a textual string IPv4 address greater than the allowable max, 4294967296. And it is this that is causing the failure.
The expanded test also fails without the source part of the change, i.e. it fails with JDK 8 FCS.
java.lang.RuntimeException: Bad Address parsed: [4294967296]
at textToNumericFormat.main(textToNumericFormat.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:484)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(M
The source change in
The expanded test also fails without the source part of the change, i.e. it fails with JDK 8 FCS.
- backported by
-
JDK-8042446 java/net/Inet4Address/textToNumericFormat.java fails on Solaris and Mac
-
- Resolved
-
-
JDK-8045760 java/net/Inet4Address/textToNumericFormat.java fails on Solaris and Mac
-
- Resolved
-
-
JDK-8053589 java/net/Inet4Address/textToNumericFormat.java fails on Solaris and Mac
-
- Resolved
-
- duplicates
-
JDK-8041622 InetAddress.getByName incorrectly parses "4294967296"
-
- Closed
-
- relates to
-
JDK-8040747 Improve performance of IP address parsing
-
- Resolved
-