[OpenJDK 2D-Dev] Review Request for JDK-8054877: Javadoc issue in javax.print
Anisha Nagarajan
anisha.nagarajan1 at gmail.com
Thu Aug 14 20:50:55 UTC 2014
Here is the updated Webrev:
http://cr.openjdk.java.net/~ssides/8054877/8054877.2/
Thank you,
Anisha
On Tue, Aug 12, 2014 at 1:11 PM, Phil Race <philip.race at oracle.com> wrote:
> 612 * Write the instance to a stream (ie serialize the object). 613 * 614 * @exception IOException Thrown if there was an I/O error while creating 615 * the output stream
> 616 */
> 617 private void writeObject(ObjectOutputStream s) throws IOException {
> 618
> 619 s.defaultWriteObject();
> 620 s.writeObject(myMimeType.getMimeType());
> 621 }
>
> hmm .. seems like the output stream is your parameter so its already created.
>
> If you look at the methods on ObjectOutputStream you'll see they say :-
>
> * @throws IOException if I/O errors occur while writing to the underlying
> * stream
>
> I think that you just want the same text.
>
> Same should work for readObject except its "reading from" not "writing to"
>
> Also for this one :-
> 626 * @exception ClassNotFoundException Thrown if there was an error finding 627 * the class
>
> you need to remember that its not "the" class - as the object stream may
> reference a graph of objects of varying classes and you'll get this
> exception if any class is not found. So more like this :- * @throws
> ClassNotFoundException if the class of a serialized object * could not be
> found. -phil.
>
> On 8/12/14 11:53 AM, Anisha Nagarajan wrote:
>
> Hi,
>
> Please review the fix for the following bug:
> https://bugs.openjdk.java.net/browse/JDK-8054877
>
> Here is the corresponding webrev:
> http://cr.openjdk.java.net/~ssides/8054877/8054877.0
>
> This fix addresses the missing @exception tags for IOExceptions and
> ClassNotFoundExceptions in DocFlavor.java.
>
> Thank you,
> Anisha Nagarajan
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20140814/bb0ffbce/attachment.html>
More information about the 2d-dev
mailing list