You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by cf...@bluedolphin.com on 2002/07/24 17:57:30 UTC

Velocity 1.3.1 rc1 still broken, here's the patch fix

The MethodMap correctly handles Object to primitive parameters, however it 
stops when it hits the first primitive parameter.  Thus a method with 
signature like set(Object, int, Object) always fails.

--- MethodMap.java      2002-07-24 11:44:31.000000000 -0400
+++ MethodMap.1.13.2.1.java     2002-07-24 11:54:54.000000000 -0400
@@ -259,7 +259,7 @@
                  */
                 if (checkPrimitive(base[i], setclass))
                 {
-                    continue;
+                    break;
                 }
                 else
                 {

Please respond directly since I'm not on the dev mail list.


Chris Felaco
Principal Software Engineer
Blue Dolphin Group
(508) 358-6758

Re: Velocity 1.3.1 rc1 still broken, here's the patch fix

Posted by "Geir Magnusson Jr." <ge...@adeptra.com>.
On 7/24/02 11:57 AM, "cfelaco@bluedolphin.com" <cf...@bluedolphin.com>
wrote:

> The MethodMap correctly handles Object to primitive parameters, however it
> stops when it hits the first primitive parameter.  Thus a method with
> signature like set(Object, int, Object) always fails.
> 
> --- MethodMap.java      2002-07-24 11:44:31.000000000 -0400
> +++ MethodMap.1.13.2.1.java     2002-07-24 11:54:54.000000000 -0400
> @@ -259,7 +259,7 @@
>                 */
>                if (checkPrimitive(base[i], setclass))
>                {
> -                    continue;
> +                    break;
>                }
>                else
>                {
> 
> Please respond directly since I'm not on the dev mail list.
> 


Doh.

You are right.  This and the other bit mentioned will be in rc2.

Thanks

-- 
Geir Magnusson Jr. 
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>