You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rahul Akolkar (JIRA)" <ji...@apache.org> on 2010/05/13 00:36:41 UTC
[jira] Updated: (DIGESTER-59) [Digester][PATCH] Obtaining String
class in CallMethodRule
[ https://issues.apache.org/jira/browse/DIGESTER-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar updated DIGESTER-59:
----------------------------------
Reporter: Rahul Akolkar (was: Rahul)
Changing reporter in order to close old account.
> [Digester][PATCH] Obtaining String class in CallMethodRule
> ----------------------------------------------------------
>
> Key: DIGESTER-59
> URL: https://issues.apache.org/jira/browse/DIGESTER-59
> Project: Commons Digester
> Issue Type: Bug
> Affects Versions: 1.6
> Environment: Operating System: other
> Platform: Other
> Reporter: Rahul Akolkar
> Priority: Trivial
>
> Recent musings on the CallMethodRule code brought to my notice an interesting
> construct for obtaining the String class ;-)
> Inlining a patch, since its trivial:
> Index: CallMethodRule.java
> ===================================================================
> RCS file: /usr/local/cvsroot/apache/patches/commons-digester-1.6-
> src/src/java/org/apache/commons/digester/CallMethodRule.java,v
> retrieving revision 1.1
> diff -c -r1.1 CallMethodRule.java
> *** CallMethodRule.java 27 May 2005 02:52:14 -0000 1.2
> --- CallMethodRule.java 27 May 2005 03:21:23 -0000
> ***************
> 262c262
> < this.paramTypes[i] = "abc".getClass();
> ---
> > this.paramTypes[i] = String.class;
> 330c330
> < this.paramTypes[i] = "abc".getClass();
> ---
> > this.paramTypes[i] = String.class;
> 503c503
> < paramTypes[0] = "abc".getClass();
> ---
> > paramTypes[0] = String.class;
> -Rahul
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.