From abennett@example.com  Tue Jun  7 21:52:24 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 96E236B17
	for <abennett@example.com>; Tue,  7 Jun 2011 21:52:24 +0000 (UTC)
Received: (qmail 96361 invoked by uid 500); 7 Jun 2011 21:52:22 -0000
Delivered-To: abennett@example.com
Received: (qmail 96249 invoked by uid 500); 7 Jun 2011 21:52:22 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 96241 invoked by uid 500); 7 Jun 2011 21:52:22 -0000
Delivered-To: abennett@example.com
Received: (qmail 96224 invoked by uid 99); 7 Jun 2011 21:52:22 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 21:52:22 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 21:52:20 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 0D59010602E
	for <abennett@example.com>; Tue,  7 Jun 2011 21:51:59 +0000 (UTC)
Date: Tue, 7 Jun 2011 21:51:59 +0000 (UTC)
From: "Alex (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
Subject: [jira] [Created] (VELTOOLS-141) VelocityView Servlet does not
 handle NULL templates
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org

VelocityView Servlet does not handle NULL templates
---------------------------------------------------

                 Key: VELTOOLS-141
                 URL: https://issues.apache.org/jira/browse/VELTOOLS-141
             Project: Velocity Tools
          Issue Type: Bug
          Components: VelocityView
            Reporter: Alex
            Priority: Minor


For some reason the check for NULL was dropped between the velocity tools 1.3 and 2.0. Basically I need a way to send a redirect and skip merging of the template. We used to do that by overriding the handleRequest method, issuing the response.sendRedirect there and returning NULL for the template. However returning NULL would no longer work in 2.0 since the mergeTemplate is done regardless of it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Thu Jun 16 14:36:12 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id CA20265F7
	for <abennett@example.com>; Thu, 16 Jun 2011 14:36:12 +0000 (UTC)
Received: (qmail 8514 invoked by uid 500); 16 Jun 2011 14:36:12 -0000
Delivered-To: abennett@example.com
Received: (qmail 8470 invoked by uid 500); 16 Jun 2011 14:36:12 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 8052 invoked by uid 500); 16 Jun 2011 14:36:12 -0000
Delivered-To: abennett@example.com
Received: (qmail 8040 invoked by uid 99); 16 Jun 2011 14:36:12 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 14:36:12 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 14:36:09 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id D514041B497
	for <abennett@example.com>; Thu, 16 Jun 2011 14:35:48 +0000 (UTC)
Date: Thu, 16 Jun 2011 14:35:48 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
Subject: [jira] [Created] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org

$mathTool.roundTo fails for negative numbers
--------------------------------------------

                 Key: VELTOOLS-142
                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
             Project: Velocity Tools
          Issue Type: Bug
          Components: GenericTools
    Affects Versions: 1.4
         Environment: Linux Ubunu 8.05
            Reporter: Marc Dzaebel
            Priority: Critical


MathTool.roundTo(1, -1) = 0.9

I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Thu Jun 16 14:52:08 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 79CC0603E
	for <abennett@example.com>; Thu, 16 Jun 2011 14:52:08 +0000 (UTC)
Received: (qmail 39092 invoked by uid 500); 16 Jun 2011 14:52:08 -0000
Delivered-To: abennett@example.com
Received: (qmail 39070 invoked by uid 500); 16 Jun 2011 14:52:08 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 39062 invoked by uid 500); 16 Jun 2011 14:52:08 -0000
Delivered-To: abennett@example.com
Received: (qmail 39059 invoked by uid 99); 16 Jun 2011 14:52:08 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 14:52:08 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 14:52:07 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 5B22B41BFE4
	for <abennett@example.com>; Thu, 16 Jun 2011 14:51:47 +0000 (UTC)
Date: Thu, 16 Jun 2011 14:51:47 +0000 (UTC)
From: "Sergiu Dumitriu (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394


    [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050467#comment-13050467 ] 

Sergiu Dumitriu commented on VELTOOLS-142:
------------------------------------------

Works for me on velocity-tools-1.4. Are you sure 1.4 isn't the version of velocity-engine?

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 1.4
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>            Priority: Critical
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Thu Jun 16 19:41:11 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 772D76DE3
	for <abennett@example.com>; Thu, 16 Jun 2011 19:41:11 +0000 (UTC)
Received: (qmail 18541 invoked by uid 500); 16 Jun 2011 19:41:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 18520 invoked by uid 500); 16 Jun 2011 19:41:11 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 18512 invoked by uid 500); 16 Jun 2011 19:41:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 18509 invoked by uid 99); 16 Jun 2011 19:41:11 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 19:41:11 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 19:41:09 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 0F0AD41C7D8
	for <abennett@example.com>; Thu, 16 Jun 2011 19:40:48 +0000 (UTC)
Date: Thu, 16 Jun 2011 19:40:48 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Updated] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


     [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Dzaebel updated VELTOOLS-142:
----------------------------------

    Priority: Major  (was: Critical)

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 1.4
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Thu Jun 16 19:49:10 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id ABE7E6DDE
	for <abennett@example.com>; Thu, 16 Jun 2011 19:49:10 +0000 (UTC)
Received: (qmail 45141 invoked by uid 500); 16 Jun 2011 19:49:10 -0000
Delivered-To: abennett@example.com
Received: (qmail 45093 invoked by uid 500); 16 Jun 2011 19:49:10 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 45082 invoked by uid 500); 16 Jun 2011 19:49:10 -0000
Delivered-To: abennett@example.com
Received: (qmail 45078 invoked by uid 99); 16 Jun 2011 19:49:10 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 19:49:10 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 19:49:08 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 59FA941CC0D
	for <abennett@example.com>; Thu, 16 Jun 2011 19:48:47 +0000 (UTC)
Date: Thu, 16 Jun 2011 19:48:47 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


    [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050683#comment-13050683 ] 

Marc Dzaebel commented on VELTOOLS-142:
---------------------------------------

Thanks Sergiu, 

I proved that Polarion really uses velocity-tools-generic-1.4.jar in its plugin (http://extensions.polarion.com/polarion/extensions/extension.jsp?extension=PE-174). I reinstalled the newest version, however, still $mathTool.roundTo(1, -1) prints -0.9. Even the doc points to 1.4 but there might be problems in the plugin implementation, so the Polarion support is already informed.

A workaround is to use $mathTool.abs and print a minus sign for negative numbers, so priority is only major (if this is a bug in Velocity at all). You might wait or close this issue until I get an answers from the plugin developer.

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 1.4
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Fri Jun 17 14:39:09 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id A1FF0434A
	for <abennett@example.com>; Fri, 17 Jun 2011 14:39:09 +0000 (UTC)
Received: (qmail 252 invoked by uid 500); 17 Jun 2011 14:39:09 -0000
Delivered-To: abennett@example.com
Received: (qmail 213 invoked by uid 500); 17 Jun 2011 14:39:08 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 200 invoked by uid 500); 17 Jun 2011 14:39:08 -0000
Delivered-To: abennett@example.com
Received: (qmail 197 invoked by uid 99); 17 Jun 2011 14:39:08 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:39:08 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:39:07 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 6F5E241E918
	for <abennett@example.com>; Fri, 17 Jun 2011 14:38:47 +0000 (UTC)
Date: Fri, 17 Jun 2011 14:38:47 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394


    [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051096#comment-13051096 ] 

Marc Dzaebel commented on VELTOOLS-142:
---------------------------------------

Deep in some library in Polarion there is another MathTool with version 1.1 (and not 1.4) that contains the bug. However, I can now upgrade to 1.4 and the problem is fixed there. So Apache has nothing to do any more.

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 1.4
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Fri Jun 17 14:41:10 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id B084443B5
	for <abennett@example.com>; Fri, 17 Jun 2011 14:41:10 +0000 (UTC)
Received: (qmail 4762 invoked by uid 500); 17 Jun 2011 14:41:10 -0000
Delivered-To: abennett@example.com
Received: (qmail 4745 invoked by uid 500); 17 Jun 2011 14:41:10 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 4737 invoked by uid 500); 17 Jun 2011 14:41:10 -0000
Delivered-To: abennett@example.com
Received: (qmail 4734 invoked by uid 99); 17 Jun 2011 14:41:10 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:41:10 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:41:08 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 78A4841EA20
	for <abennett@example.com>; Fri, 17 Jun 2011 14:40:47 +0000 (UTC)
Date: Fri, 17 Jun 2011 14:40:47 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Updated] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


     [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Dzaebel updated VELTOOLS-142:
----------------------------------

        Fix Version/s: 1.4
    Affects Version/s:     (was: 1.4)

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>             Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Fri Jun 17 14:43:11 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 3A47B444E
	for <abennett@example.com>; Fri, 17 Jun 2011 14:43:11 +0000 (UTC)
Received: (qmail 11278 invoked by uid 500); 17 Jun 2011 14:43:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 11260 invoked by uid 500); 17 Jun 2011 14:43:11 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 11252 invoked by uid 500); 17 Jun 2011 14:43:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 11249 invoked by uid 99); 17 Jun 2011 14:43:11 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:43:11 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:43:08 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 05CD341EB92
	for <abennett@example.com>; Fri, 17 Jun 2011 14:42:48 +0000 (UTC)
Date: Fri, 17 Jun 2011 14:42:48 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Resolved] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


     [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Dzaebel resolved VELTOOLS-142.
-----------------------------------

    Resolution: Fixed

Occured in 1.1

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>             Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Fri Jun 17 14:43:11 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 5A3934454
	for <abennett@example.com>; Fri, 17 Jun 2011 14:43:11 +0000 (UTC)
Received: (qmail 11407 invoked by uid 500); 17 Jun 2011 14:43:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 11374 invoked by uid 500); 17 Jun 2011 14:43:11 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 11332 invoked by uid 500); 17 Jun 2011 14:43:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 11316 invoked by uid 99); 17 Jun 2011 14:43:11 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:43:11 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 14:43:08 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 1587441EB94
	for <abennett@example.com>; Fri, 17 Jun 2011 14:42:48 +0000 (UTC)
Date: Fri, 17 Jun 2011 14:42:48 +0000 (UTC)
From: "Marc Dzaebel (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Updated] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


     [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Dzaebel updated VELTOOLS-142:
----------------------------------

    Comment: was deleted

(was: Occured in 1.1)

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>             Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Fri Jun 17 15:33:11 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 6323F475A
	for <abennett@example.com>; Fri, 17 Jun 2011 15:33:11 +0000 (UTC)
Received: (qmail 22679 invoked by uid 500); 17 Jun 2011 15:33:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 22660 invoked by uid 500); 17 Jun 2011 15:33:11 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 22652 invoked by uid 500); 17 Jun 2011 15:33:11 -0000
Delivered-To: abennett@example.com
Received: (qmail 22649 invoked by uid 99); 17 Jun 2011 15:33:11 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 15:33:11 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 15:33:09 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 0493741E5DA
	for <abennett@example.com>; Fri, 17 Jun 2011 15:32:48 +0000 (UTC)
Date: Fri, 17 Jun 2011 15:32:48 +0000 (UTC)
From: "Sergiu Dumitriu (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Commented] (VELTOOLS-142) $mathTool.roundTo fails for
 negative numbers
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


    [ https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051140#comment-13051140 ] 

Sergiu Dumitriu commented on VELTOOLS-142:
------------------------------------------

It's not good to "introduce" fixed issues in the release notes. This should be closed as Duplicate instead.

> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
>                 Key: VELTOOLS-142
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-142
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>         Environment: Linux Ubunu 8.05
>            Reporter: Marc Dzaebel
>             Fix For: 1.4
>
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be upgraded. Any workaround?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Wed Jun 22 14:21:12 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 165D662AD
	for <abennett@example.com>; Wed, 22 Jun 2011 14:21:12 +0000 (UTC)
Received: (qmail 16734 invoked by uid 500); 22 Jun 2011 14:21:12 -0000
Delivered-To: abennett@example.com
Received: (qmail 16647 invoked by uid 500); 22 Jun 2011 14:21:11 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 16638 invoked by uid 500); 22 Jun 2011 14:21:10 -0000
Delivered-To: abennett@example.com
Received: (qmail 16634 invoked by uid 99); 22 Jun 2011 14:21:10 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 14:21:10 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 14:21:08 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 7CE524287AC
	for <abennett@example.com>; Wed, 22 Jun 2011 14:20:47 +0000 (UTC)
Date: Wed, 22 Jun 2011 14:20:47 +0000 (UTC)
From: "Misagh Moayyed (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
Subject: [jira] [Commented] (VELOCITY-782) UNC Path support for Velocity
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
X-Virus-Checked: Checked by ClamAV on apache.org


    [ https://issues.apache.org/jira/browse/VELOCITY-782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053282#comment-13053282 ] 

Misagh Moayyed commented on VELOCITY-782:
-----------------------------------------

Guys, any updates on the patch ?

> UNC Path support for Velocity
> -----------------------------
>
>                 Key: VELOCITY-782
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-782
>             Project: Velocity
>          Issue Type: Bug
>         Environment: Jameica 1.10 + Hibiscus 1.12
> Windows 7 Ultimate x64
> WHS
>            Reporter: Frank Glaser
>            Priority: Minor
>         Attachments: patch1-0
>
>
> Add UNC Path support for the getTemplate function:
> Here an extract of the Hibiscus log file:
> ...
> [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.jameica.gui.internal.parts.BackgroundTaskMonitor.check] creating progress monitor for GUI
> [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.jameica.gui.internal.parts.BackgroundTaskMonitor$2.run] activating progress monitor
> [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.boot.BootLoader.resolve]   init service de.willuhn.jameica.services.VelocityService
> [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.VelocityService: 285 millis
> [Mon Oct 18 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.services.VelocityService$VelocityLogger.log] ResourceManager : unable to find resource 'de.willuhn.jameica.hbci.rmi.Umsatz.csv.vm' in any resource loader.
> [Mon Oct 18 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.hbci.io.VelocityExporter.doExport] error while writing into export file
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'de.willuhn.jameica.hbci.rmi.Umsatz.csv.vm'
> 	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
> 	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
> 	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
> 	at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:549)
> 	at de.willuhn.jameica.hbci.io.VelocityExporter.doExport(VelocityExporter.java:107)
> 	at de.willuhn.jameica.hbci.gui.dialogs.ExportDialog$3.run(ExportDialog.java:193)
> 	at de.willuhn.jameica.gui.GUI$6.run(GUI.java:912)
> [Mon Oct 18 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.messaging.LogMessageConsumer.handleMessage] Fehler beim Schreiben in die Export-Datei
> ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Thu Jun 30 15:07:52 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 36AFC6639
	for <abennett@example.com>; Thu, 30 Jun 2011 15:07:52 +0000 (UTC)
Received: (qmail 48331 invoked by uid 500); 30 Jun 2011 15:07:52 -0000
Delivered-To: abennett@example.com
Received: (qmail 47845 invoked by uid 500); 30 Jun 2011 15:07:50 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 47818 invoked by uid 500); 30 Jun 2011 15:07:50 -0000
Delivered-To: abennett@example.com
Received: (qmail 47812 invoked by uid 99); 30 Jun 2011 15:07:49 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 15:07:49 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 15:07:48 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 742B943C615
	for <abennett@example.com>; Thu, 30 Jun 2011 15:07:28 +0000 (UTC)
Date: Thu, 30 Jun 2011 15:07:28 +0000 (UTC)
From: "Scott (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <abennett@example.com>
Subject: [jira] [Created] (VELOCITY-805) Unable to convert instances of two
 separate enums on a Velocity Template
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394

Unable to convert instances of two separate enums on a Velocity Template
------------------------------------------------------------------------

                 Key: VELOCITY-805
                 URL: https://issues.apache.org/jira/browse/VELOCITY-805
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 1.7
         Environment: Tomcat 6, Spring 3.0.4
            Reporter: Scott
            Priority: Minor


I am unable to utilize the valueOf method on two separate instances of an enum - which share the same name.  The issue is that when the second valueOf method is called, it is invoked on the first enum which is accessed in the template.

This can be tested by creating two enums with the same name in two separate classes.  Place these onto the context, and then try to utilize the valueOf method and you'll receive a stack trace stating that no value exists.  For example create two separate classes with an inner enum which both have the same name.  Add each enum onto the context, and then in a template attempt to access them in the following way: $enum1.valueOf("VAL1") $enum2.valueOf("SOME_OTHER_VAL").  This will not work.  Luckily you are able to do the following as a workaround: $enum1.valueOf($enum1, "VAL1") $enum2.valueOf($enum2, "SOME_OTHER_VAL")

Stack trace below:
java.lang.IllegalArgumentException: No enum const class org.velocity.testing.domain.User$Actions.MODIFY_NAME
	java.lang.Enum.valueOf(Enum.java:196)
	org.velocity.testing.domain.User$Actions.valueOf(User.java:1)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
	org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
	org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
	org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
	org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
	org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
	org.apache.velocity.Template.merge(Template.java:356)
	org.apache.velocity.Template.merge(Template.java:260)
	org.springframework.web.servlet.view.velocity.VelocityLayoutView.renderScreenContent(VelocityLayoutView.java:180)
	org.springframework.web.servlet.view.velocity.VelocityLayoutView.doRender(VelocityLayoutView.java:150)
	org.springframework.web.servlet.view.velocity.VelocityView.renderMergedTemplateModel(VelocityView.java:291)
	org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
	org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
	org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com


From abennett@example.com  Thu Jun 30 15:13:51 2011
Return-Path: <abennett@example.com>
X-Original-To: abennett@example.com
Delivered-To: abennett@example.com
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 1D22E697C
	for <abennett@example.com>; Thu, 30 Jun 2011 15:13:51 +0000 (UTC)
Received: (qmail 60900 invoked by uid 500); 30 Jun 2011 15:13:51 -0000
Delivered-To: abennett@example.com
Received: (qmail 60747 invoked by uid 500); 30 Jun 2011 15:13:50 -0000
Mailing-List: contact abennett@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:abennett@example.com>
List-Unsubscribe: <mailto:abennett@example.com>
List-Post: <mailto:abennett@example.com>
List-Id: <dev.velocity.apache.org>
Reply-To: "Velocity Developers List" <abennett@example.com>
Delivered-To: mailing list abennett@example.com
Received: (qmail 60728 invoked by uid 500); 30 Jun 2011 15:13:49 -0000
Delivered-To: abennett@example.com
Received: (qmail 60721 invoked by uid 99); 30 Jun 2011 15:13:49 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 15:13:49 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
	tests=ALL_TRUSTED,T_RP_MATCHES_RCVD
X-Spam-Check-By: apache.org
Received: from [83.161.120.155] (HELO hel.zones.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 15:13:48 +0000
Received: from hel.zones.apache.org (hel.zones.apache.org [83.161.120.155])
	by hel.zones.apache.org (Postfix) with ESMTP id 6F1F543C98A
	for <abennett@example.com>; Thu, 30 Jun 2011 15:13:28 +0000 (UTC)
Date: Thu, 30 Jun 2011 15:13:28 +0000 (UTC)
From: "Scott (JIRA)" <abennett@example.com>
To: abennett@example.com
Message-ID: <{{EMAIL+PHONE}}>
In-Reply-To: <abennett@example.com>
Subject: [jira] [Updated] (VELOCITY-805) Unable to convert instances of two
 separate enums on a Velocity Template
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394


     [ https://issues.apache.org/jira/browse/VELOCITY-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott updated VELOCITY-805:
---------------------------

    Attachment: Test.zip

Shows error state when deployed and running.

> Unable to convert instances of two separate enums on a Velocity Template
> ------------------------------------------------------------------------
>
>                 Key: VELOCITY-805
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-805
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.7
>         Environment: Tomcat 6, Spring 3.0.4
>            Reporter: Scott
>            Priority: Minor
>         Attachments: Test.zip
>
>
> I am unable to utilize the valueOf method on two separate instances of an enum - which share the same name.  The issue is that when the second valueOf method is called, it is invoked on the first enum which is accessed in the template.
> This can be tested by creating two enums with the same name in two separate classes.  Place these onto the context, and then try to utilize the valueOf method and you'll receive a stack trace stating that no value exists.  For example create two separate classes with an inner enum which both have the same name.  Add each enum onto the context, and then in a template attempt to access them in the following way: $enum1.valueOf("VAL1") $enum2.valueOf("SOME_OTHER_VAL").  This will not work.  Luckily you are able to do the following as a workaround: $enum1.valueOf($enum1, "VAL1") $enum2.valueOf($enum2, "SOME_OTHER_VAL")
> Stack trace below:
> java.lang.IllegalArgumentException: No enum const class org.velocity.testing.domain.User$Actions.MODIFY_NAME
> 	java.lang.Enum.valueOf(Enum.java:196)
> 	org.velocity.testing.domain.User$Actions.valueOf(User.java:1)
> 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	java.lang.reflect.Method.invoke(Method.java:597)
> 	org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
> 	org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
> 	org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
> 	org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
> 	org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
> 	org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> 	org.apache.velocity.Template.merge(Template.java:356)
> 	org.apache.velocity.Template.merge(Template.java:260)
> 	org.springframework.web.servlet.view.velocity.VelocityLayoutView.renderScreenContent(VelocityLayoutView.java:180)
> 	org.springframework.web.servlet.view.velocity.VelocityLayoutView.doRender(VelocityLayoutView.java:150)
> 	org.springframework.web.servlet.view.velocity.VelocityView.renderMergedTemplateModel(VelocityView.java:291)
> 	org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
> 	org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
> 	org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
> 	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
> 	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
> 	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
> 	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: abennett@example.com
For additional commands, e-mail: abennett@example.com



{'source': 'Apache Software Foundation Public Mail Archives'}