[
https://issues.apache.org/jira/browse/SLING-12493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Scott Yuan updated SLING-12493:
-------------------------------
Summary: Apache Sling Scripting JavaScript 3.1.4+ test failed with Java 17
and Java 21 (was: Apache Sling Scripting JavaScript 3.1.4+ test failed with
Java 17 and Java 21 due to the use of deprecated Mockito internal WhiteBox
class)
> Apache Sling Scripting JavaScript 3.1.4+ test failed with Java 17 and Java 21
> -----------------------------------------------------------------------------
>
> Key: SLING-12493
> URL: https://issues.apache.org/jira/browse/SLING-12493
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting JavaScript 3.1.4
> Environment: Windows, MacOS, Linux
> Reporter: Scott Yuan
> Priority: Minor
> Original Estimate: 15h
> Remaining Estimate: 15h
>
> With the latest Apache Sling Scripting JavaScript 3.1.4+ release, attempts to
> build the code using Java 17 and Java 21 failed due to the usage of the
> deprecated {{Mockito}} internal {{WhiteBox}} class in multiple places for
> service injection.
> The observed release build from [this CI
> job|https://ci-builds.apache.org/job/Sling/job/modules/job/sling-org-apache-sling-scripting-javascript/job/master/]
> confirmed that this issue caused multiple build failures.
> It would be great to modernize the tests for a cleaner and more reliable
> build process.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)