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

java.net.URI: the 'path' component should be present in opaque URIs

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b63
    • CPU:
      generic
    • OS:
      generic

      Description

      the test
              try {
                  URI u = new URI("host:opa:que?query#fragment");
                  System.out.println( u.getPath() );
              } catch (URISyntaxException e) {
                  e.printStackTrace();
              }

      shows that this URI have null path. (parseServerAuthority has no effect:)
      In this case path = 'opa:que'

      RFC says that path can't be undefined, it can be empty

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yuwangsunw Yujiang Wang (Inactive)
              Reporter:
              itseytin Igor Tseytin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: