You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2024/08/07 13:22:07 UTC

(jackrabbit) branch JCR-5096 created (now d823acf9e)

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

reschke pushed a change to branch JCR-5096
in repository https://gitbox.apache.org/repos/asf/jackrabbit.git


      at d823acf9e JCR-5096: JcrConstants: refer to the constants in javax.jcr.Property and javax.jcr.nodetype.NodeType

This branch includes the following new commits:

     new d823acf9e JCR-5096: JcrConstants: refer to the constants in javax.jcr.Property and javax.jcr.nodetype.NodeType

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit) 01/01: JCR-5096: JcrConstants: refer to the constants in javax.jcr.Property and javax.jcr.nodetype.NodeType

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch JCR-5096
in repository https://gitbox.apache.org/repos/asf/jackrabbit.git

commit d823acf9ed5755f4eed7752c1431dd64d9f49029
Author: Julian Reschke <re...@apache.org>
AuthorDate: Wed Aug 7 14:21:52 2024 +0100

    JCR-5096: JcrConstants: refer to the constants in javax.jcr.Property and javax.jcr.nodetype.NodeType
---
 .../src/main/java/org/apache/jackrabbit/JcrConstants.java  | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java b/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
index 3b15c90d8..d66c1313e 100644
--- a/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
+++ b/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
@@ -19,11 +19,19 @@ package org.apache.jackrabbit;
 import javax.jcr.Session;
 
 /**
- * This Interface defines some of the item names that are defined in the
- * jcr spec 1.0, using the default prefixes 'jcr', 'nt' and 'mix'. Please note
- * that those prefixes can by redefined by an application using the
+ * This interface defines some of the item names that are defined in the <a
+ * href=https://s.apache.org/jcr-1.0-javadoc/">JCR Specification 1.0</a>, using
+ * the default prefixes 'jcr', 'nt' and 'mix'.
+ * <p>
+ * Please note that those prefixes can by redefined by an application using the
  * {@link Session#setNamespacePrefix(String, String)} method. As a result, the
  * constants may not refer to the respective items.
+ * <p>
+ * On the other hand, the constants in {@link javax.jcr.nodetype.NodeType} and
+ * {@link javax.jcr.Property} are more complete (covering
+ * <a href="https://s.apache.org/jcr-2.0-javadoc/">JCR 2.0</a> as well) and also
+ * define names using <i>expanded</i> form, which is immune to session local
+ * remappings.
  */
 public interface JcrConstants {
     /**