Author: sascharodekamp
Date: Wed Feb 15 09:02:32 2012
New Revision: 1244404
URL:
http://svn.apache.org/viewvc?rev=1244404&view=revLog:
BUGFIX: Impossible cast from org.ofbiz.jcr.orm.jackrabbit.JackrabbitFolder to org.ofbiz.jcr.orm.jackrabbit.JackrabbitFile in org.ofbiz.jcr.api.jackrabbit.JackrabbitFileHelper.getRepositoryContent(String, String) (
https://issues.apache.org/jira/browse/OFBIZ-4695): A patch from Michael Brohl which corrects the class cast exception.
Modified:
ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/api/jackrabbit/JackrabbitFileHelper.java
Modified: ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/api/jackrabbit/JackrabbitFileHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/api/jackrabbit/JackrabbitFileHelper.java?rev=1244404&r1=1244403&r2=1244404&view=diff==============================================================================
--- ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/api/jackrabbit/JackrabbitFileHelper.java (original)
+++ ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/api/jackrabbit/JackrabbitFileHelper.java Wed Feb 15 09:02:32 2012
@@ -79,7 +79,7 @@ public class JackrabbitFileHelper extend
hierarchy = fileObj;
return fileObj;
} else if (orm instanceof JackrabbitFolder) {
- JackrabbitFile fileObj = (JackrabbitFile) orm;
+ JackrabbitFolder fileObj = (JackrabbitFolder) orm;
hierarchy = fileObj;
return fileObj;
}