Robbie Gemmell created ARTEMIS-3854:
---------------------------------------

             Summary: tests using reflection to get process pid fail on Java 17
                 Key: ARTEMIS-3854
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3854
             Project: ActiveMQ Artemis
          Issue Type: Test
          Components: Tests
    Affects Versions: 2.23.0
            Reporter: Robbie Gemmell
             Fix For: 2.24.0


A few of the tests use reflection to get the pid of a process from 
java.lang.ProcessImpl, which no longer works by default on newer Java releases 
such as 17 (probably 16+).

Though the existing approach can be made to with an --add-opens flag, this 
route is actually no longer necessary as a pid() accessor was added to the 
Process interface in Java 9, so since the codebase now requires Java 11 we can 
just simply update the tests to use that method.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to