[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2154) Configuration.addCacheableFile does not work with cached file
Darryl Miles (JIRA)
noreply at atlassian.com
Fri Oct 27 07:15:04 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2154?page=comments#action_24996 ]
Darryl Miles commented on HHH-2154:
-----------------------------------
Was about to file this bug too. I think this change by max broke it.
http://fisheye.jboss.org/browse/Hibernate/branches/Branch_3_2/Hibernate3/src/org/hibernate/cfg/Configuration.java?r=10154#l336
I think the logic should be ...
if ( doc == null) {
if(xmlFile.exists()) {
// SNIPPED
} else {
throw new MappingNotFoundException("file", xmlFile.toString());
}
}
> Configuration.addCacheableFile does not work with cached file
> -------------------------------------------------------------
>
> Key: HHH-2154
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2154
> Project: Hibernate3
> Type: Bug
> Components: core
> Versions: 3.2.0.ga
> Reporter: Oleg S.
>
>
> Works fine on the first run - cached .bin file is created. On the second run, method Configuration.addCacheableFile always throws a MappingNotFoundException.
> The reason is a piece of code added to the addCacheableFile method:
--
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