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

    • b34
    • generic
    • generic

        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


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

                Created:
                Updated:
                Resolved: