xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47171] Should never use Error to report runtime errors
Date Sat, 09 May 2009 07:19:48 GMT

--- Comment #1 from Helder Magalhães <helder.magalhaes@gmail.com>  2009-05-09 00:19:46
PST ---
(In reply to comment #0)
> TIFFImageEncoder uses Error to report unexpected conditions, e.g.

Although not very familiar with this, regarding this specific class I'd say
there's pending effort into using XML Graphics Commons [1] for the task (this
implementation should be abandoned in favor of a more compatible one (see bug
38183 and bug 46513).

> Using Error makes it hard to safely catch the exception, as there are some
> Errors that should not be caught (e.g. ThreadDeath)
> There are over 70 classes where Error is thrown [...]

I haven't dig up on this enough but, for what it's worth, I'd vote on this
also. :-)

[1] http://xmlgraphics.apache.org/commons/#features

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org

View raw message