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

Incompatibility of jaxp API DocumentBuild.parse(uri) between jdk versions 1.5 and 1.6

XMLWordPrintable

    • b92
    • x86
    • windows_xp

      The code which used to work in jdk 1.5 causes failure in jdk 1.6. Pl. refer bug# 6425843 for background information on this bug. Referring to the following evaluation, eventhough a bug might have been fixed this introduced incompatibilty between jdk 1.5 and jdk 1.6. This needs to be addressed, for ex. by documenting and warning the users in advance.

      <<<
      the MalformedURLException is thrown because the URI being passed to DocumentBuild.parse(uri) is invalid. note that URIs cannot contain spaces, they must be escaped, %20, like other special chars in URIs. see the Javadoc for java.net.URL for specs and validity rules.

      App Server should be passing in a valid URI.

      note that the TestSpace attached program clearly demonstrates, this: the URI is invalid, contains a space, so an exception is thrown.

      Entry 4 jeff.suttor [2006-06-01 02:30]
      >>>
      I can't reproduce this. I wonder if it's been fixed along the way?
      I've now confirmed that this bug is fixed (as a consequence of fixing 6449441). There is a unit test for it in the RI.

            nwalshsunw Norman Walsh (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: