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

java.net.URI: constructor URI(schema, authority, path, query, fragment) has an error

XMLWordPrintable

    • b63
    • generic
    • generic

      see attachment. output:

      URI 's://ui@%5B::0000%5D/path',
      user info has to be 'ui', but 'null'
      schema = 's'
      ui = 'null'
      host = 'null'
      port = -1
      path = '/path'
      authority = 'ui@[::0000]'

      As far as I know 'authority' IS '[userInfo@]host[:port]'.
      This output shows that URI class instance can be inconsistent. It stores the same information at least twice.

            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: