Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.13
-
None
Description
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.