[OpenJDK 2D-Dev] Suggest a modification to isPostscript exception handling

Sean Chou zhouyx at linux.vnet.ibm.com
Fri Aug 24 05:23:21 UTC 2012


Hi Phil,

    I'm really sorry about this typo, the modification looks so simple that
I became careless when porting.

    The patch is from ibmjdk and it has been tested on Java6 since Oct,
2007 and on Java7 since Feb, 2012.  To be honest, this modification isn't
related to a real bug in openjdk for now; it is posted to see if there are
any reason that the printer is assumed to be a postscript printer in all
exceptions.

    Many thanks.

The false is corrected in this webrev:
http://cr.openjdk.java.net/~zhouyx/OJDK-429/webrev.02/

On Fri, Aug 24, 2012 at 12:20 AM, Phil Race <philip.race at oracle.com> wrote:

>  Sean,
>
> Without even commenting on the merits or necessity I note that you cannot
> possibly
> have even built this patch, much less tested it.
>
> > 625 return Boolean.FLASE;
>
> -phil.
>
>
> On 8/23/12 1:58 AM, Sean Chou wrote:
>
> Hello,
>
>      I updated the repository to 2d, the webrev is now:
>  http://cr.openjdk.java.net/~zhouyx/OJDK-429/webrev.01/
>
> Please take a look.
>
> ---------- Forwarded message ----------
> From: Sean Chou <zhouyx at linux.vnet.ibm.com>
> Date: Thu, Aug 23, 2012 at 2:24 PM
> Subject: Suggest a modification to isPostscript exception handling
> To: 2d-dev at openjdk.java.net
>
>
> Hello,
>
>       This is a simple modification to sun/print/PSPrinterJob.java.
>      When sun.print.IPPPrintService.isPostscript method checks if the
> printer is a postscript printer, if IOException happens, the method assumes
> the printer is postscript printer (IPPPrintService.java, line 1605). In
> class PSPrinterJob, it invoke isPostscript and assumes all  Throwables to
> be a postscript printer ( PSPrinterJob.java, line 625 ).  I think it should
> return false in cases exceptions other than IOException are
> caught, IOException should not be expanded to all Throwable.
>
>  The webrev is at: http://cr.openjdk.java.net/~zhouyx/OJDK-429/webrev.00/
>   .
>
>  Please take a look.
>
>  --
> Best Regards,
> Sean Chou
>
>
>


-- 
Best Regards,
Sean Chou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20120824/3dc48747/attachment.html>


More information about the 2d-dev mailing list