[
https://issues.apache.org/jira/browse/SLING-9067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17035496#comment-17035496
]
Carsten Ziegeler commented on SLING-9067:
-----------------------------------------
Fixed in rev 6b95010
The IndexOutOfBoundsException in RepPolicyEntryHandler was caused by a wrong
stack handling for nested XML elements. For some reason, this does not cause an
exception in Java 8, but does in >= Java 11. I fixed the stack handling.
The XML output errors were caused by two problems: indenting of XML in a
transformer is set to indent by "0" spaces in Java 8, but to "4" spaces in Java
>= 11. This results in different output. As the RepPolicyEntryHandlerTest tests
test for an exact output which was not considering indention at all, this
failed. I changed the code to always use "4" spaces and adjusted the test
accordingly
> Fix build errors with Java 11
> -----------------------------
>
> Key: SLING-9067
> URL: https://issues.apache.org/jira/browse/SLING-9067
> Project: Sling
> Issue Type: Bug
> Components: Feature Model
> Affects Versions: Content-Package to Feature Model Converter 1.0.8
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: Content-Package to Feature Model Converter 1.0.10
>
>
> When building with Java 11, three test errors occur, one
> IndexOutOfBoundsException and two XML output format related errors
--
This message was sent by Atlassian Jira
(v8.3.4#803005)