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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: