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

[TEST_BUG] java/net/InetAddress/IPv4Formats.java failed because hello.foo.bar does exist

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b34
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        This happened on latest JDK 9 nightly. See following error messages:
        ----------System.err:(12/636)----------
        java.lang.RuntimeException: hello.foo.bar should throw UnknownHostException!
        at IPv4Formats.main(IPv4Formats.java:57)
        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:498)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
        at java.lang.Thread.run(Thread.java:745)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: hello.foo.bar should throw UnknownHostException!

        I tried "ping hello.foo.bar" on my machine. hello.foo.bar is indeed pingable. So I suppose this is a test bug. We may need another dummy name for UnknownHostException


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                msheppar Mark Sheppard
                Reporter:
                xiaofeya Xiaofeng Yang
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: