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

JCK: /api/java_net/URI/[Ctor, Components,Create] Tests failing with [-server -Xcomp] in Linux

    Details

    • Subcomponent:
    • Resolved In Build:
      b22
    • CPU:
      generic, x86
    • OS:
      linux, solaris_8, windows_2000
    • Verification:
      Verified

      Backports

        Description

        JDK/JRE : Fail - Mustang b13,14(Flag -server -Xcomp)
                         Pass - Mustang b13, 14(Flag -Xint)
        JCK : jck1.5
        Platform[s] : Linux(RedHat 3.0AS and Quicksilver)
        switch/Mode : Fail: -server -Xcomp
                         Pass: -Xint
        JCK test owner : http://javaweb.sfbay/jcce/tcks/jck/docs/others/owners.jto

        Failing Tests :
        ==================
        1:/api/java_net/URI/index.html#Ctor
        2:/api/java_net/URI/index.html#create
        3./api/java_net/URI/index.html#components

        Test source location:
        =====================
        All Tests Source Attached

        jtr file location:
        ==================

        All jtr files Attached


        How to reproduce:
        ====================

        script with .sh extension attached


        Tests Output:
        -------------
        CTOR:
        -------
        [dtftest@circuslv rajesh]$ ksh repro.sh

        URI2004: Failed. unexpected java.net.URISyntaxException: Expected IPv4 address at index 17: ftp://[1234:2345::ABCD]:1234/dir/file#ABC with ftp://[1234:2345::ABCD]:1234/dir/file#ABC

        URI2013: Failed. Unexpected: java.net.URISyntaxException: Malformed IPv6 address at index 7: abc://[::0001]/home/root#Xwith (abc,::0001,/home/root,X)

        URI2015: Failed. Unexpected: java.net.URISyntaxException: Expected IPv4 address at index 20: abc://me@[0001:ABCD::0001]/home/root?a=b;x=ywith (abc,me@[0001:ABCD::0001],/home/root,a=b;x=y,null)

        STATUS:Failed.test cases: 19; passed: 16; failed: 3; first test case failure: URI200

        -------------------------------------------------------
        Create:
        -------
        [dtftest@circuslv rajesh]$ ksh repro.sh

        URI2004: Failed. unexpected java.net.URISyntaxException: Expected IPv4 address at index 17: ftp://[1234:2345::ABCD]:1234/dir/file#ABC with ftp://[1234:2345::ABCD]:1234/dir/file#ABC

        URI2013: Failed. Unexpected: java.net.URISyntaxException: Malformed IPv6 address at index 7: abc://[::0001]/home/root#Xwith (abc,::0001,/home/root,X)

        URI2015: Failed. Unexpected: java.net.URISyntaxException: Expected IPv4 address at index 20: abc://me@[0001:ABCD::0001]/home/root?a=b;x=ywith (abc,me@[0001:ABCD::0001],/home/root,a=b;x=y,null)

        STATUS:Failed.test cases: 19; passed: 16; failed: 3; first test case failure: URI2004
        [dtftest@circuslv rajesh]$ vi repro.sh
        [dtftest@circuslv rajesh]$ ksh repro.sh


        URI2036: Failed. unexpected java.net.URISyntaxException: Expected IPv4 address at index 17: ftp://[1234:2345::ABCD]:1234/dir/file#ABC with ftp://[1234:2345::ABCD]:1234/dir/file#ABC
        URI2037: Passed. OKAY
         ============== URI0005 ==============
        java.lang.NullPointerException thrown as expected
        STATUS:Failed.test cases: 8; passed: 7; failed: 1; first test case failure: URI2036

        ------------------------
        Components:
        ------------
        [dtftest@circuslv rajesh]$ ksh repro.sh
        java.lang.IllegalArgumentException
        at java.net.URI.create(Unknown Source)
        at javasoft.sqe.tests.api.java.net.URI.componentsTests.URI2053(componentsTests.java:220)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.java.net.URI.componentsTests.main(componentsTests.java:27)
        Caused by: java.net.URISyntaxException: Expected IPv4 address at index 13: http://[1080::8:800:200C:417A]
        at java.net.URI$Parser.fail(Unknown Source)
        at java.net.URI$Parser.failExpecting(Unknown Source)
        at java.net.URI$Parser.takeIPv4Address(Unknown Source)
        at java.net.URI$Parser.parseIPv6Reference(Unknown Source)
        at java.net.URI$Parser.parseServer(Unknown Source)
        at java.net.URI$Parser.parseAuthority(Unknown Source)
        at java.net.URI$Parser.parseHierarchical(Unknown Source)
        at java.net.URI$Parser.parse(Unknown Source)
        at java.net.URI.<init>(Unknown Source)
        ... 10 more
        URI2053: Failed. Test case throws exception: java.lang.IllegalArgumentException

        STATUS:Failed.test cases: 15; passed: 14; failed: 1; first test case failure: URI2053


        Specific Machine Info:
        ----------------------
        Linux-QuickSilver:
        ------------------
        Linux jck-win4 2.4.19-4GB #1 Fri Apr 2 19:59:17 UTC 2004 i686 unknown

        Linux- Red Hat:
        ----------------
        Linux circuslv 2.6.9-1.648_EL #1 Tue Oct 26 12:39:58 EDT 2004 i686 i686 i386 GNU/Linux


        If i use Flag (-server -Xcomp) this particular tests Failed on B13,b14(mustang)
        With Flag -Xint ... the same tests passed.






        ###@###.### 2004-12-13 20:40:51 GMT

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rasbold Chuck Rasbold
                  Reporter:
                  rdannapa Rajesh Dannapaneni (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: