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

java/net/Inet4Address/textToNumericFormat.java fails on Solaris and Mac

XMLWordPrintable

    • b12
    • Not verified

        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 in JDK-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.

              michaelm Michael McMahon
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: