Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3854

tests using reflection to get process pid fail on Java 17

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.23.0
    • 2.23.1
    • Tests
    • None

    Description

      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.

      Attachments

        Activity

          People

            robbie Robbie Gemmell
            robbie Robbie Gemmell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: