Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52070

Illegal reflective access by org.jenkinsci.utils.process.ProcessUtils to field java.lang.ProcessImpl#pid

    XMLWordPrintable

Details

    Description

      The ProcessUtils in lib-process-utils allows getting PID from a process using reflection. As part of the general Java 9/10/11 hackathon all setAccessible reflection use was being reviewed.

       

      This issue is to remove the reflection use, and as a nice side effect the code will work on Windows too. However, this requires upgrading to Java 9+, so I don't really expect it to happen anytime soon. For now I wanted to preserve the little bit of work I did.

      Attachments

        Activity

          jonahgraham Jonah Graham created issue -
          jonahgraham Jonah Graham made changes -
          Field Original Value New Value
          Epic Link JENKINS-40689 [ 177392 ]
          jonahgraham Jonah Graham made changes -
          Remote Link This issue links to "https://github.com/jenkinsci/lib-process-utils/pull/2 (Web Link)" [ 20911 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels java10_hackathon
          ndeloof Nicolas De Loof made changes -
          Remote Link This issue links to "convert to multi-release JAR (Web Link)" [ 20924 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels java10_hackathon java10_hackathon java11
          batmat Baptiste Mathus made changes -
          Labels java10_hackathon java11 java10_hackathon java11 triaged
          markewaite Mark Waite made changes -
          Status In Review [ 10005 ] In Progress [ 3 ]
          markewaite Mark Waite made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          basil Basil Crow made changes -
          Epic Link JENKINS-40689 [ 177392 ] JENKINS-67688 [ 214193 ]
          basil Basil Crow made changes -
          Labels java10_hackathon java11 triaged java11
          basil Basil Crow made changes -
          Assignee Jonah Graham [ jonahgraham ]
          basil Basil Crow made changes -
          Component/s other [ 15490 ]
          Component/s core [ 15593 ]
          basil Basil Crow made changes -
          Summary remove reflection and support Windows in lib-process-utils for getting PID Illegal reflective access by org.jenkinsci.utils.process.ProcessUtils to field java.lang.ProcessImpl#pid
          basil Basil Crow made changes -
          Epic Link JENKINS-67688 [ 214193 ] JENKINS-67907 [ 214454 ]
          basil Basil Crow made changes -
          Issue Type Improvement [ 4 ] Bug [ 1 ]

          People

            Unassigned Unassigned
            jonahgraham Jonah Graham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: