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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • groovy-runtime
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: