Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9395

Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1
    • Component/s: groovy-runtime
    • Labels:
      None

      Description

      Groovy version 3.0.0
      JDK: openjdk version "13.0.2" 2020-01-15 (BellSoft)

      Code:

      ProcessBuilder pb = new ProcessBuilder(["cmd", "/c", "dir"])
      Process pr = pb.start()
      pr.getInputStream()
      

      Warning in console:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/........../groovy-3.0.0.jar) to method java.lang.ProcessImpl.getInputStream()
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      

       
      In groovy version 3.0.0-rc-3 - all ok (no warn message)

        Attachments

          Activity

            People

            • Assignee:
              daniel_sun Daniel Sun
              Reporter:
              gkraser Sergey Kravchenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: