[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3695) RegionFactory's no-arg constructor does not get invoked

Manuel Dominguez Sarmiento (JIRA) noreply at atlassian.com
Fri Feb 5 22:15:29 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35491#action_35491 ] 

Manuel Dominguez Sarmiento commented on HHH-3695:
-------------------------------------------------

Spring integration is being affected, since it assumes a parameter-less constructor will work (which doesn't even though the Javadoc states otherwise):

http://jira.springframework.org/browse/SPR-6387

> RegionFactory's no-arg constructor does not get invoked
> -------------------------------------------------------
>
>                 Key: HHH-3695
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3695
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: caching (L2)
>    Affects Versions: 3.3.1
>            Reporter: Paul Cowan
>            Priority: Trivial
>         Attachments: hibernate-bothconstructors.patch, hibernate-fixjavadoc.patch
>
>
> RegionFactory's class Javadoc says:
>  * Implementors should define a constructor in one of two forms:<ul>
>  * <li>MyRegionFactoryImpl({@link java.util.Properties})</li>
>  * <li>MyRegionFactoryImpl()</li>
>  * </ul>
> but SettingsFactory.createRegionFactory only looks for the one that takes a Properties class.
> This is relatively minor, I don't think 'fixing' this by just correcting the javadoc is really that big a deal but have patches for both ways.

-- 
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