You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2010/03/25 15:33:30 UTC

[jira] Created: (JEXL-100) Array access expressions fail when evaluated twice and cache is enabled

Array access expressions fail when evaluated twice and cache is enabled
-----------------------------------------------------------------------

                 Key: JEXL-100
                 URL: https://issues.apache.org/jira/browse/JEXL-100
             Project: Commons JEXL
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Henri Biestro
            Assignee: Henri Biestro
            Priority: Blocker
             Fix For: 2.0.1


When caching is enabled, a cached array expression tries to coerce a ListGetExecutor to Integer which throws an exception.
Sole workaround is to disable cache entirely which is not always possible; critical!

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


[jira] Resolved: (JEXL-100) Array access expressions fail when evaluated twice and cache is enabled

Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro resolved JEXL-100.
--------------------------------

    Resolution: Fixed

New Revision: 928405

URL: http://svn.apache.org/viewvc?rev=928405&view=rev
Log:
Updated Parser.jjt to define all acceptable tokens resulting in cleaner lexer.
Added 'register' syntax (#0-9) used by JexlEngine.{s,g}etProperty: syntax only
valid through ALLOW_REGISTER flag and REGISTERS lexical state.
Completed literal handling (array, integer, string, float).

Added:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTArrayLiteral.java
(with props)
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTFloatLiteral.java
(with props)
Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlArithmetic.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTStringLiteral.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/Parser.jjt
    commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/JexlTestCase.java


> Array access expressions fail when evaluated twice and cache is enabled
> -----------------------------------------------------------------------
>
>                 Key: JEXL-100
>                 URL: https://issues.apache.org/jira/browse/JEXL-100
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Blocker
>             Fix For: 2.0.1
>
>
> When caching is enabled, a cached array expression using an integer literal will fail at evaluation, the integer literal throwing an exception trying to coerce a ListGetExecutor to Integer.
> Sole workaround is to disable cache entirely which is not always possible; critical!

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


[jira] Updated: (JEXL-100) Array access expressions fail when evaluated twice and cache is enabled

Posted by "Henri Biestro (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro updated JEXL-100:
-------------------------------

    Description: 
When caching is enabled, a cached array expression using an integer literal will fail at evaluation, the integer literal throwing an exception trying to coerce a ListGetExecutor to Integer.
Sole workaround is to disable cache entirely which is not always possible; critical!

  was:
When caching is enabled, a cached array expression tries to coerce a ListGetExecutor to Integer which throws an exception.
Sole workaround is to disable cache entirely which is not always possible; critical!


> Array access expressions fail when evaluated twice and cache is enabled
> -----------------------------------------------------------------------
>
>                 Key: JEXL-100
>                 URL: https://issues.apache.org/jira/browse/JEXL-100
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Blocker
>             Fix For: 2.0.1
>
>
> When caching is enabled, a cached array expression using an integer literal will fail at evaluation, the integer literal throwing an exception trying to coerce a ListGetExecutor to Integer.
> Sole workaround is to disable cache entirely which is not always possible; critical!

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