xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49412] New: [PATCH] Useless messages for exception thrown in Image codec
Date Wed, 09 Jun 2010 09:55:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49412

           Summary: [PATCH] Useless messages for exception thrown in Image
                    codec
           Product: XMLGraphicsCommons
           Version: Trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Image codecs
        AssignedTo: general@xmlgraphics.apache.org
        ReportedBy: julien.ayme@gmail.com


Created an attachment (id=25557)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25557)
The proposed patch

PropertyUtil references a non-existent resource bundle:
"org.apache.xmlgraphics.image.codec.resources.Messages".

The PropertyUtil class is used to generated localized message for the exception
thrown in image.codec subpackages, and since the resource is not supplied, the
generated exceptions messages are all useless (e.g. "PNGEncodeParam0").

I propose to change the pattern of the message key, instead of using "classname
+ number", by using a "real" meaningful message, like "invalid value supplied".

I will attach shortly:
- A patch to PropertyUtil to be able to give arguments to the messages,
- an enhancement of the messages for some classes in image.codec,
- a resource bundle (for Locale "en" and "fr")

-- 
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: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message