[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3412) change to CacheException not binary compatible

Reed Ellsworth (JIRA) noreply at atlassian.com
Fri Aug 1 17:23:59 EDT 2008


change to CacheException not binary compatible
----------------------------------------------

                 Key: HHH-3412
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3412
             Project: Hibernate3
          Issue Type: Bug
          Components: caching (L2)
    Affects Versions: 3.2.5
            Reporter: Reed Ellsworth


There used to be a constructor CacheException(Exception) now there is CacheException(Throwable). This source compatible but not binary compatible. This is a problem if you use ehcache which is quite common. The latest ehcache 1.5.0 is compile against hibernate 3.2.1. Whenever, ehcache throws an exception it is lost because Java will throw a MethodNotFound exception when trying to create an instance of CacheException(Exception). Which of course means the real exception is lost and hibernate reports the MethodNotFound exception.

Please add an additional  constructor CacheException(Exception).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list