You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Jarkko Viinamäki (JIRA)" <de...@velocity.apache.org> on 2008/07/14 20:14:31 UTC

[jira] Created: (VELOCITY-605) Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)

Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)
--------------------------------------------------------------------------------------

                 Key: VELOCITY-605
                 URL: https://issues.apache.org/jira/browse/VELOCITY-605
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 1.6
            Reporter: Jarkko Viinamäki


I compiled the latest SVN head of Velocity today. Template memory consumption has gone down a lot. Great work!

However, I noticed that i18n string in my templates don't work anymore.

I have a properties file with:
toolbar.loggedin=Logged in as <b>{0}</b>

in the toolbox.xml:

  <tool>
     <key>msg</key>
     <scope>request</scope>
     <class>
       org.apache.velocity.tools.struts.MessageTool
     </class>
  </tool>


In the template file I have a string:
$msg.toolbar.loggedin.insert("joe")

This works with Velocity 1.5 and Velocity tools 1.4 fine but with latest SVN head build the velocity.log shows:

Introspection Error : Ambiguous method invocation insert(java.lang.String) for class class org.apache.velocity.tools.struts.MessageTool$TextKey

and the message isn't rendered at all.

Any idea what's wrong?

-- 
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] Commented: (VELOCITY-605) Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613430#action_12613430 ] 

Nathan Bubna commented on VELOCITY-605:
---------------------------------------

Hmm.  Looks like a problem with the new varargs support.  I'll see if i can whip up a test case...

> Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)
> --------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-605
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-605
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.6
>            Reporter: Jarkko Viinamäki
>
> I compiled the latest SVN head of Velocity today. Template memory consumption has gone down a lot. Great work!
> However, I noticed that i18n string in my templates don't work anymore.
> I have a properties file with:
> toolbar.loggedin=Logged in as <b>{0}</b>
> in the toolbox.xml:
>   <tool>
>      <key>msg</key>
>      <scope>request</scope>
>      <class>
>        org.apache.velocity.tools.struts.MessageTool
>      </class>
>   </tool>
> In the template file I have a string:
> $msg.toolbar.loggedin.insert("joe")
> This works with Velocity 1.5 and Velocity tools 1.4 fine but with latest SVN head build the velocity.log shows:
> Introspection Error : Ambiguous method invocation insert(java.lang.String) for class class org.apache.velocity.tools.struts.MessageTool$TextKey
> and the message isn't rendered at all.
> Any idea what's wrong?

-- 
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] Resolved: (VELOCITY-605) Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)

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

Nathan Bubna resolved VELOCITY-605.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Fixed in revision 676740.  Thank you very much, Jarkko, for being an early tester!!  It is wonderful to find such bugs before we go through the hassle of a release. :)

> Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)
> --------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-605
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-605
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.6
>            Reporter: Jarkko Viinamäki
>             Fix For: 1.6
>
>
> I compiled the latest SVN head of Velocity today. Template memory consumption has gone down a lot. Great work!
> However, I noticed that i18n string in my templates don't work anymore.
> I have a properties file with:
> toolbar.loggedin=Logged in as <b>{0}</b>
> in the toolbox.xml:
>   <tool>
>      <key>msg</key>
>      <scope>request</scope>
>      <class>
>        org.apache.velocity.tools.struts.MessageTool
>      </class>
>   </tool>
> In the template file I have a string:
> $msg.toolbar.loggedin.insert("joe")
> This works with Velocity 1.5 and Velocity tools 1.4 fine but with latest SVN head build the velocity.log shows:
> Introspection Error : Ambiguous method invocation insert(java.lang.String) for class class org.apache.velocity.tools.struts.MessageTool$TextKey
> and the message isn't rendered at all.
> Any idea what's wrong?

-- 
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] Commented: (VELOCITY-605) Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613450#action_12613450 ] 

Nathan Bubna commented on VELOCITY-605:
---------------------------------------

Yep.  Looks like i missed a case in my implementation of varargs support.  Fix coming shortly...

> Velocity tools / Message Tool - ambiguous method invocation with latest SVN head (1.6)
> --------------------------------------------------------------------------------------
>
>                 Key: VELOCITY-605
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-605
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.6
>            Reporter: Jarkko Viinamäki
>
> I compiled the latest SVN head of Velocity today. Template memory consumption has gone down a lot. Great work!
> However, I noticed that i18n string in my templates don't work anymore.
> I have a properties file with:
> toolbar.loggedin=Logged in as <b>{0}</b>
> in the toolbox.xml:
>   <tool>
>      <key>msg</key>
>      <scope>request</scope>
>      <class>
>        org.apache.velocity.tools.struts.MessageTool
>      </class>
>   </tool>
> In the template file I have a string:
> $msg.toolbar.loggedin.insert("joe")
> This works with Velocity 1.5 and Velocity tools 1.4 fine but with latest SVN head build the velocity.log shows:
> Introspection Error : Ambiguous method invocation insert(java.lang.String) for class class org.apache.velocity.tools.struts.MessageTool$TextKey
> and the message isn't rendered at all.
> Any idea what's wrong?

-- 
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