Harmony
  1. Harmony
  2. HARMONY-6059

[classlib][luni] jar URL is created with wrong protocol for URLStreamHandler

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M9
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      From the spec: "Any URL that ends with a '/' is assumed to refer to a directory. Otherwise, the URL is assumed to refer to a JAR file which will be downloaded and opened as needed".
      So what I have done follows:
      1. specified the URLStreamHandler to the jar, not the protocol as before
      2. Add the test case to the test-impl
      3. Because the I have add the a class file to the lf.jar, the size of jar file is increased. So the test size case int the JarURLConnectionTest fail. I have changed the test case.
      4. The reason that the vm above java6 is required is because the class file I have added to the lf.jar is compiled under the java 6.

      1. HARMONY-6059.diff
        5 kB
        Li Jing Qin
      2. HARMONY-6059v2.diff
        4 kB
        Li Jing Qin
      3. lf.jar
        33 kB
        Li Jing Qin

        Activity

          People

          • Assignee:
            Nathan Beyer
            Reporter:
            Li Jing Qin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development