You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2022/06/14 18:59:00 UTC

[jira] [Closed] (ARTEMIS-3854) tests using reflection to get process pid fail on Java 17

     [ https://issues.apache.org/jira/browse/ARTEMIS-3854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clebert Suconic closed ARTEMIS-3854.
------------------------------------

> 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
>            Assignee: Robbie Gemmell
>            Priority: Major
>             Fix For: 2.23.1
>
>
> 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)