Georg Henzler created SLING-8026:
------------------------------------
Summary: Sling Oak Restrictions not compatible with oak 1.8.x
Key: SLING-8026
URL: https://issues.apache.org/jira/browse/SLING-8026
Project: Sling
Issue Type: Task
Components: Oak
Reporter: Georg Henzler
Assignee: Georg Henzler
The Sling oak restrictions [1] are not compatible to oak 1.8.x since it imports
TreeUtil [2] that is not part of the SPI (and the location has changed). To
maintain compatibility to older oak versions, it would be best to get rid of
the TreeUtil.getString(treeToCheck, SLING_RESOURCE_TYPE) call altogether
(TreeUtils provides a simple type conversion and null check that can be
directly part of ResourceTypePattern to minimise package dependencies).
[1] https://sling.apache.org/documentation/bundles/sling-oak-restrictions.html
[2]
https://github.com/apache/sling-org-apache-sling-oak-restrictions/blob/master/src/main/java/org/apache/sling/oak/restrictions/impl/ResourceTypePattern.java#L28
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)