Author: justin
Date: Fri May 21 17:07:27 2010
New Revision: 947074
URL: http://svn.apache.org/viewvc?rev=947074&view=rev
Log:
SLING-1527 - fixing ClassCastException in original impl
Modified:
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Modified:
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java?rev=947074&r1=947073&r2=947074&view=diff
==============================================================================
---
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
(original)
+++
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Fri May 21 17:07:27 2010
@@ -89,7 +89,7 @@ public class JcrResourceProvider impleme
} else if (parent instanceof ResourceWrapper) {
- parentItemResource = (JcrItemResource) ((ResourceWrapper)
parent).getResource();
+ return listChildren(((ResourceWrapper) parent).getResource());
} else {
// try to get the JcrItemResource for the parent path to list