commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <mcucchi...@apache.org>
Subject [OGNL] CacheException
Date Wed, 01 Feb 2012 15:55:42 GMT
Hi guys,
I was trying to integrate Struts2 with the new api layout.
Unfortunately I realized that due to the introduction of the new checked
CacheException [1] (which basically inherits the Exception class), every
method (which uses a cache, practically all of them) of OgnlRuntime [2]
must throw the aforementioned exception.
Furthermore it seems that there is only one class able to produce
exceptions [3]
This is make very hard the integration process of Struts2.
I was thinking to change the exception in a unchecked version, but [3]
makes me think the contrary.

I would like to know your thought.


[1]
http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/CacheException.java?revision=1194943&view=markup
[2]
http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlRuntime.java?revision=1203594&view=markup
[3]
http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/PropertyDescriptorCacheEntryFactory.java?revision=1194960&view=markup

Twitter     :http://www.twitter.com/m_cucchiara
G+          :https://plus.google.com/107903711540963855921
Linkedin    :http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message