incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r991875 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
Date Thu, 02 Sep 2010 09:30:25 GMT
Author: fmeschbe
Date: Thu Sep  2 09:30:24 2010
New Revision: 991875

URL: http://svn.apache.org/viewvc?rev=991875&view=rev
Log:
Use ResourceUtil.getName() to not fail on resources not implementing new API yet....

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java?rev=991875&r1=991874&r2=991875&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolver.java
Thu Sep  2 09:30:24 2010
@@ -595,7 +595,7 @@ public class JcrResourceResolver
             while (res != null) {
                 String alias = getProperty(res, PROP_ALIAS);
                 if (alias == null) {
-                    alias = res.getName();
+                    alias = ResourceUtil.getName(res);
                 }
                 if (alias != null && alias.length() > 0 && !alias.endsWith(":"))
{
                     names.add(alias);



Mime
View raw message