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 2022/05/03 12:27:00 UTC

[jira] [Updated] (JEXL-368) Namespace functor resolution is not cached

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

Henri Biestro updated JEXL-368:
-------------------------------
    Description: 
WHAT:
It appears that when the namespace points to a class, its constructor (wrapped in the JexlMethod) is not cached properly in the corresponding JexlNode. Incidentally, the call to the cached method is wrong too. (Detected through jacoco coverage).
HOW:
Cache the method/ctor (as a NamespaceFunctor) in the namespace identifier (the first child), not the method/funcalll node.

  was:
WHAT:
It appears that when the namespace points to a class, its constructor (wrapped in the JexlMethod) is not cached properly in the corresponding JexlNode. Incidentally, the call to the cached method is wrong too. (Detected through jacoco coverage).
HOW:
Cache the method in the namespace identifier (the first child), not the namespace node.


> Namespace functor resolution is not cached
> ------------------------------------------
>
>                 Key: JEXL-368
>                 URL: https://issues.apache.org/jira/browse/JEXL-368
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.3
>
>
> WHAT:
> It appears that when the namespace points to a class, its constructor (wrapped in the JexlMethod) is not cached properly in the corresponding JexlNode. Incidentally, the call to the cached method is wrong too. (Detected through jacoco coverage).
> HOW:
> Cache the method/ctor (as a NamespaceFunctor) in the namespace identifier (the first child), not the method/funcalll node.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)