[
https://issues.apache.org/jira/browse/OGNL-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14160281#comment-14160281
]
Jesse Kuhnert commented on OGNL-145:
------------------------------------
Someone motivated enough to do it could probably lift some code from things
like
https://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/collect/Interners.java
or
http://docs.guava-libraries.googlecode.com/git-history/v17.0/javadoc/com/google/common/base/Suppliers.html#memoizeWithExpiration(com.google.common.base.Supplier,
long, java.util.concurrent.TimeUnit) or any number of other useful guava
utilities for this as a potential first pass solution to this problem..
I don't currently use anything relying on OGNL actively enough (other than
mybatis) to want to attempt anything like this as it'd be irresponsible /
untrustworthy but ..
> Remove all static state.
> -------------------------
>
> Key: OGNL-145
> URL: https://issues.apache.org/jira/browse/OGNL-145
> Project: Commons OGNL
> Issue Type: New Feature
> Components: Core Runtime
> Affects Versions: 2.7.3
> Environment: any
> Reporter: Jesse Kuhnert
> Assignee: Jesse Kuhnert
> Fix For: 4.0
>
>
> The static state management in OgnlRuntime is causing havoc with classloaders
> where people run multiple instances of tapestry apps with shared jar
> references to OGNL. Need to finally do the "big refactor" that removes all
> static state from OGNL.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)