This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/revert-exposing-sling-resource-type
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-resource.git

commit 9cae6d47c97186707e29b4a41f03ade4c3e6cd71
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Sep 24 15:45:21 2025 +0200

    Still deprecate SLING_RESOURCE_TYPE_PROPERTY constant
    
    This should be used from the ResourceResolver instead.
---
 .../java/org/apache/sling/jcr/resource/api/JcrResourceConstants.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceConstants.java 
b/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceConstants.java
index 8c16fbe..a025342 100644
--- a/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceConstants.java
+++ b/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceConstants.java
@@ -19,6 +19,7 @@
 package org.apache.sling.jcr.resource.api;
 
 import org.apache.sling.api.SlingConstants;
+import org.apache.sling.api.resource.ResourceResolver;
 
 /**
  * The <code>JcrResourceConstants</code> interface provides constant values.
@@ -41,8 +42,10 @@ public class JcrResourceConstants {
      * this bundle uses this property to defined the resource type of a loaded
      * resource. If this property does not exist the primary node type is used
      * as the resource type.
+     * @deprecated Use {@link ResourceResolver#PROPERTY_RESOURCE_TYPE} instead.
      */
-    public static final String SLING_RESOURCE_TYPE_PROPERTY = 
"sling:resourceType";
+    @Deprecated
+    public static final String SLING_RESOURCE_TYPE_PROPERTY = 
ResourceResolver.PROPERTY_RESOURCE_TYPE;
 
     /**
      * The name of the JCR Property that defines the resource super type (value

Reply via email to