ASF Bugzilla – Attachment 25560 Details for
Bug 49412
[PATCH] Useless messages for exception thrown in Image codec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for PNGDecodeParam class
PNGDecodeParam.diff (text/plain), 1.14 KB, created by
Julien Aymé
on 2010-06-09 06:01:18 UTC
(
hide
)
Description:
Patch for PNGDecodeParam class
Filename:
MIME Type:
Creator:
Julien Aymé
Created:
2010-06-09 06:01:18 UTC
Size:
1.14 KB
patch
obsolete
>Index: PNGDecodeParam.java >=================================================================== >--- PNGDecodeParam.java (révision 952908) >+++ PNGDecodeParam.java (copie de travail) >@@ -229,7 +229,9 @@ > */ > public void setUserExponent(float userExponent) { > if (userExponent <= 0.0F) { >- throw new IllegalArgumentException(PropertyUtil.getString("PNGDecodeParam0")); >+ throw new IllegalArgumentException(PropertyUtil.getString( >+ "{0} must be > 0, {1} supplied", >+ new Object[] { "userExponent", new Float(userExponent) })); > } > this.userExponent = userExponent; > } >@@ -278,7 +280,9 @@ > */ > public void setDisplayExponent(float displayExponent) { > if (displayExponent <= 0.0F) { >- throw new IllegalArgumentException(PropertyUtil.getString("PNGDecodeParam1")); >+ throw new IllegalArgumentException(PropertyUtil.getString( >+ "{0} must be > 0, {1} supplied", >+ new Object[] { "displayExponent", new Float(displayExponent) })); > } > this.displayExponent = displayExponent; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49412
:
25557
|
25558
|
25559
| 25560 |
25561