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

(doc) Serialized Form javadoc for java.net.URI is ambiguous

XMLWordPrintable

    • b78
    • generic
    • generic

      Javadoc for Serialized Form of java.net.URI class (build 1.6.0-rc-b61)
      contains the following description for the writeObject method:
        ...
        The only serializable field of a URI instance is its string field.
        That field is given a value, if it does not have one already, and then
        the ObjectOutputStream.defaultWriteObject() method of the given object-output
        stream is invoked.
        ...

      However, another serializable field in the java.net.URI class is described
      at the same javadoc:
        ...
        String iriString
        ...

      Thus, this is an ambiguity. Please correct javadoc or mark the iriString firld as "transient".

            yuwangsunw Yujiang Wang (Inactive)
            ygaevsky Yuri Gaevsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: