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

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

XMLWordPrintable

    • b63
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: