commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Hannah (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OGNL-257) OgnlRuntime.clearCache() Doesn't Clear All Caches
Date Wed, 01 Mar 2017 22:13:45 GMT
Chris Hannah created OGNL-257:
---------------------------------

             Summary: OgnlRuntime.clearCache() Doesn't Clear All Caches
                 Key: OGNL-257
                 URL: https://issues.apache.org/jira/browse/OGNL-257
             Project: Commons OGNL
          Issue Type: Bug
          Components: Core Runtime
    Affects Versions: 3.0.13
            Reporter: Chris Hannah
             Fix For: 3.0.13


The OgnlRuntime.clearCache() method does not empty the cacheSetMethod and cacheGetMethod caches.
The inability  to clear this cache is leading to the following error:

java.lang.IllegalArgumentException: object is not an instance of declaring class

It appears that the issue occurs when classes are reloaded by a different classloader. If
we had the ability to clear the caches mentioned above we believe it would fix our issue.

In our case we are using Spring Boot Dev Tools. When the application restarts and classes
are reloaded we have no way to clear the caches mentioned above.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message