You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Alexey Panchenko (JIRA)" <ji...@apache.org> on 2006/08/31 06:55:22 UTC

[jira] Created: (VELOCITY-452) In ASTMethod.execute the IllegalArgumentException should be catched

In ASTMethod.execute the IllegalArgumentException should be catched
-------------------------------------------------------------------

                 Key: VELOCITY-452
                 URL: http://issues.apache.org/jira/browse/VELOCITY-452
             Project: Velocity
          Issue Type: Bug
          Components: Source
    Affects Versions: 1.5
            Reporter: Alexey Panchenko
         Attachments: ASTMethod_invoke_IllegalArgumentException.patch

The IllegalArgumentException can be thrown by java.lang.reflect.Method#invoke(java.lang.Object, java.lang.Object[])

<blockquote>
if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof); if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion.
</blockquote>

It is caused by the passed parameters and should be catched to provide the location in template to the template author.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


[jira] Resolved: (VELOCITY-452) In ASTMethod.execute the IllegalArgumentException should be catched

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Glass-Husain resolved VELOCITY-452.
----------------------------------------

    Resolution: Fixed

patch applied - many thanks, Alexey!

> In ASTMethod.execute the IllegalArgumentException should be catched
> -------------------------------------------------------------------
>
>                 Key: VELOCITY-452
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-452
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.5
>            Reporter: Alexey Panchenko
>            Assignee: Henning Schmiedehausen
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: ASTMethod_invoke_IllegalArgumentException.patch
>
>
> The IllegalArgumentException can be thrown by java.lang.reflect.Method#invoke(java.lang.Object, java.lang.Object[])
> <blockquote>
> if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof); if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion.
> </blockquote>
> It is caused by the passed parameters and should be catched to provide the location in template to the template author.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-452) In ASTMethod.execute the IllegalArgumentException should be catched

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Glass-Husain updated VELOCITY-452:
---------------------------------------

    Fix Version/s: 1.6

missed this for 1.5, assigning to 1.6

> In ASTMethod.execute the IllegalArgumentException should be catched
> -------------------------------------------------------------------
>
>                 Key: VELOCITY-452
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-452
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.5
>            Reporter: Alexey Panchenko
>         Assigned To: Henning Schmiedehausen
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: ASTMethod_invoke_IllegalArgumentException.patch
>
>
> The IllegalArgumentException can be thrown by java.lang.reflect.Method#invoke(java.lang.Object, java.lang.Object[])
> <blockquote>
> if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof); if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion.
> </blockquote>
> It is caused by the passed parameters and should be catched to provide the location in template to the template author.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-452) In ASTMethod.execute the IllegalArgumentException should be catched

Posted by "Henning Schmiedehausen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-452?page=all ]

Henning Schmiedehausen updated VELOCITY-452:
--------------------------------------------

    Component/s: Engine
                     (was: Source)
       Assignee: Henning Schmiedehausen

I look into this for 1.5. 

> In ASTMethod.execute the IllegalArgumentException should be catched
> -------------------------------------------------------------------
>
>                 Key: VELOCITY-452
>                 URL: http://issues.apache.org/jira/browse/VELOCITY-452
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.5
>            Reporter: Alexey Panchenko
>         Assigned To: Henning Schmiedehausen
>            Priority: Minor
>         Attachments: ASTMethod_invoke_IllegalArgumentException.patch
>
>
> The IllegalArgumentException can be thrown by java.lang.reflect.Method#invoke(java.lang.Object, java.lang.Object[])
> <blockquote>
> if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof); if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion.
> </blockquote>
> It is caused by the passed parameters and should be catched to provide the location in template to the template author.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


[jira] Updated: (VELOCITY-452) In ASTMethod.execute the IllegalArgumentException should be catched

Posted by "Will Glass-Husain (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-452?page=all ]

Will Glass-Husain updated VELOCITY-452:
---------------------------------------

    Priority: Minor  (was: Major)

Sounds reasonable.  Let me review and if it looks good, commit.  Thanks for submitting!

P.S.  Appreciate your attention to detail re: the code guidelines - makes it much easier to review.

> In ASTMethod.execute the IllegalArgumentException should be catched
> -------------------------------------------------------------------
>
>                 Key: VELOCITY-452
>                 URL: http://issues.apache.org/jira/browse/VELOCITY-452
>             Project: Velocity
>          Issue Type: Bug
>          Components: Source
>    Affects Versions: 1.5
>            Reporter: Alexey Panchenko
>            Priority: Minor
>         Attachments: ASTMethod_invoke_IllegalArgumentException.patch
>
>
> The IllegalArgumentException can be thrown by java.lang.reflect.Method#invoke(java.lang.Object, java.lang.Object[])
> <blockquote>
> if the method is an instance method and the specified object argument is not an instance of the class or interface declaring the underlying method (or of a subclass or implementor thereof); if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion.
> </blockquote>
> It is caused by the passed parameters and should be catched to provide the location in template to the template author.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org