Uploaded image for project: 'Maven Scripting'
  1. Maven Scripting
  2. MSCRIPTING-3

Illegal reflective access warnings when using groovy engine on Java 11

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    Description

      When run in a build using Java 11 (didn't test java 9,10) I get the warning:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:[snip]/.m2/repository/org/codehaus/groovy/groovy/2.5.5/groovy-2.5.5.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      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
      

      To be fair this is due to https://issues.apache.org/jira/browse/GROOVY-8339

      So this issue is really a placeholder that at some point may require some work against a new version of groovy.

      Of if you think it's really just blame upstream case, then this can be closed.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            rotty3000 Raymond Augé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: