Scott Yuan created SLING-12493:
----------------------------------

             Summary: 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
                 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


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)

Reply via email to