-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JCR-5127 Deprecate constants which are defined in expanded form in JCR #221
base: trunk
Are you sure you want to change the base?
Conversation
jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
Outdated
Show resolved
Hide resolved
af9b19f
to
f24a17f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot add a comment on line 327 but couldn't be replace the jcr:path
constant by the one javax.jcr.Property#JCR_PATH.
jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
Show resolved
Hide resolved
Yes, but according to its javadoc this is supposed to be used with query results (and this refers to a pseudo property). Not sure if expanded names are supported for all use cases here. |
f24a17f
to
4bfe375
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There are some edge cases which require currently qualified form (e.g. comparing Item‘s name against a Set of literals), therefore I am not sure we can really deprecate… |
jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
Outdated
Show resolved
Hide resolved
jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/JcrConstants.java
Outdated
Show resolved
Hide resolved
2.0 API Highlight where expanded form names should be used instead
4bfe375
to
7fb9097
Compare
Please have a look again the PR, I no longer deprecated as there are valid use cases which require the qualified form. Instead I just link out to the alternative in the javadoc. |
2.0 API