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

JAVAX: API JarURLConnection.getIdentities() fails to return Identity[] Object.

    Details

      Description

      The JarURLConnection.getIdentities() method fails to return an
      Identity[] Object when the JarURLConnection points to a JAR File
      Entry.

      The JarURLConnection API Test Suite is part of the JAVAX Test Suite.

      To run the JarURLConnection API Test Suite do the following:

      (1) Do a new bringover of the JAVAX Test Suite.

          % bringover -p /net/labzap.east/files7/JDK_tests/JDK1.2/javax -w $HOME/workspaces/javax .

      (2) Change to the JarURLConnection API directory.

          % cd $HOME/workspaces/javax/tests/api/JarURLConnection

      (3) Execute the JarURLConnection API Test Suite.

          % make run

      (4) It creates logfiles under:

          % cd results/solaris /* SOLARIS logfiles */
          % cd results/win32 /* WIN32 logfiles */

          Look at the runall.logfile and runall.failures files.

      Notice that the getIdentities() method fails to return an
      Identity[] Object when the JarURLConnection points to a JAR
      File Entry.

      I have added the test as part of the attachment. To build the test do the
      following:

      % tar xvf a.tar
      % javac getIdentitiesTest.java
      % java getIdentitiesTest

      Here is the output of the getIndentities API test. Notice that it fails to
      return an Identity[] Object when the connection for the URL points to a JAR
      Entry. The URL is:

      URL = jar:file:/home/alanf/workspaces/javax/tests/api/JarURLConnection/jardir/T1
      1.jar!/T11.class


      Removing class file [getIdentitiesTest.class] .....
      Compiling test [getIdentitiesTest.java] .....
      Executing test using java [getIdentitiesTest] .....
      getIdentitiesTest(test0): . . . . . . . . PASS
      getIdentitiesTest(test1): . . . . . . . . PASS
      ERROR: getIdentities() returned Identity=null for:
      URL = jar:file:/home/alanf/workspaces/javax/tests/api/JarURLConnection/jardir/T1
      1.jar!/T11.class
      getIdentitiesTest(test2): . . . . . . . . FAIL
      getIdentitiesTest(test3): . . . . . . . . PASS
      java.lang.RuntimeException: getIdentitiesTest
              at MyUtil.reportPassFailResult(MyUtil.java:52)
              at getIdentitiesTest.main(getIdentitiesTest.java:46)

        Attachments

          Activity

            People

            • Assignee:
              rschemersunw Roland Schemers (Inactive)
              Reporter:
              aefreche Alan Frechette (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: