You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by pi...@apache.org on 2002/12/18 20:29:21 UTC
cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources Resources.properties Resources_ja.properties
pierred 2002/12/18 11:29:20
Modified: standard/src/org/apache/taglibs/standard/tag/common/core
SetSupport.java
standard/src/org/apache/taglibs/standard/resources
Resources.properties Resources_ja.properties
Log:
Fix for bug 15495
If a setter method does not exist, we now throw a JspException with a proper
error message, rather than a NullPointerException.
Revision Changes Path
1.9 +5 -0 jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core/SetSupport.java
Index: SetSupport.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core/SetSupport.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- SetSupport.java 1 May 2002 03:55:53 -0000 1.8
+++ SetSupport.java 18 Dec 2002 19:29:20 -0000 1.9
@@ -168,6 +168,11 @@
for (int i = 0; i < pd.length; i++) {
if (pd[i].getName().equals(property)) {
Method m = pd[i].getWriteMethod();
+ if (m == null) {
+ throw new JspException(
+ Resources.getMessage("SET_NO_SETTER_METHOD",
+ property));
+ }
if (result != null) {
m.invoke(target,
new Object[] {
1.36 +2 -0 jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources/Resources.properties
Index: Resources.properties
===================================================================
RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources/Resources.properties,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- Resources.properties 26 Sep 2002 16:23:37 -0000 1.35
+++ Resources.properties 18 Dec 2002 19:29:20 -0000 1.36
@@ -292,3 +292,5 @@
TLV_EMPTY_VAR=\
Empty 'var' attribute in "{0}" tag.
+
+SET_NO_SETTER_METHOD=No setter method in <set> for property "{0}"
1.5 +2 -0 jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources/Resources_ja.properties
Index: Resources_ja.properties
===================================================================
RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources/Resources_ja.properties,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Resources_ja.properties 26 Sep 2002 16:23:37 -0000 1.4
+++ Resources_ja.properties 18 Dec 2002 19:29:20 -0000 1.5
@@ -332,3 +332,5 @@
TLV_EMPTY_VAR=\
"{0}" \u30bf\u30b0\u3067 'var' \u5c5e\u6027\u304c\u7a7a\u3067\u3059
+
+SET_NO_SETTER_METHOD=No setter method in <set> for property "{0}"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [PATCH] Japanese translation for the latest error messages ( RE: cvs
commit:
jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources
Resources.properties Resources_ja.properties )
Posted by Pierre Delisle <pi...@sun.com>.
Thanks Kan,
Just to be safe, I asked someone here to do a quick verification
of the translations. As soon as this is done, I'll apply the patch.
Many thanks for doing this.
-- Pierre
Kan Ogawa wrote:
>
> Hi, Pierre.
>
> I submit the Japanese translation patch for the error messages which
> synchronized the latest CVS revision in Standard Taglib.
> Also, some typos of Japanese words are corrected.
>
> Regards,
>
> ----
> Kan Ogawa
> super-creek@jcom.home.ne.jp
>
> > -----Original Message-----
> > From: pierred@apache.org [mailto:pierred@apache.org]
> > Sent: Thursday, December 19, 2002 4:29 AM
> > To: jakarta-taglibs-cvs@apache.org
> > Subject: cvs commit:
> > jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources
> > Resources.properties Resources_ja.properties
> >
> >
> > pierred 2002/12/18 11:29:20
> >
> > Modified: standard/src/org/apache/taglibs/standard/tag/common/core
> > SetSupport.java
> > standard/src/org/apache/taglibs/standard/resources
> > Resources.properties Resources_ja.properties
> > Log:
> > Fix for bug 15495
> > If a setter method does not exist, we now throw a JspException with a proper
> > error message, rather than a NullPointerException.
> >
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Name: Resources_ja.properties.patch
> Resources_ja.properties.patch Type: unspecified type (application/octet-stream)
> Encoding: quoted-printable
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
[PATCH] Japanese translation for the latest error messages ( RE: cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources Resources.properties Resources_ja.properties )
Posted by Kan Ogawa <su...@jcom.home.ne.jp>.
Hi, Pierre.
I submit the Japanese translation patch for the error messages which
synchronized the latest CVS revision in Standard Taglib.
Also, some typos of Japanese words are corrected.
Regards,
----
Kan Ogawa
super-creek@jcom.home.ne.jp
> -----Original Message-----
> From: pierred@apache.org [mailto:pierred@apache.org]
> Sent: Thursday, December 19, 2002 4:29 AM
> To: jakarta-taglibs-cvs@apache.org
> Subject: cvs commit:
> jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources
> Resources.properties Resources_ja.properties
>
>
> pierred 2002/12/18 11:29:20
>
> Modified: standard/src/org/apache/taglibs/standard/tag/common/core
> SetSupport.java
> standard/src/org/apache/taglibs/standard/resources
> Resources.properties Resources_ja.properties
> Log:
> Fix for bug 15495
> If a setter method does not exist, we now throw a JspException with a proper
> error message, rather than a NullPointerException.
>