[
https://issues.jboss.org/browse/JBWS-4138?page=com.atlassian.jira.plugin....
]
Jan Blizňák edited comment on JBWS-4138 at 10/4/18 9:06 AM:
------------------------------------------------------------
I tried the easy approach of updating plugin to 1.6.1 and groovy to 2.5.2 but that only
leads to another warning and the build crash:
{code:java}
[INFO] --- gmavenplus-plugin:1.6.1:execute (testsuite-default) @
jbossws-cxf-specific-tests ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1
(file:/home/jbliznak/.m2/repository/org/codehaus/groovy/groovy/2.5.2/groovy-2.5.2.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
[INFO] Using Groovy 2.5.2 to perform execute.
...
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.6.1:execute
(testsuite-default) on project jbossws-cxf-specific-tests: Error occurred while calling a
method on a Groovy class from classpath.: InvocationTargetException: BUG! exception in
phase 'semantic analysis' in source unit 'Script1.groovy' null:
UnsupportedOperationException -> [Help 1]{code}
The crash seems to be caused by
https://issues.apache.org/jira/browse/GROOVY-8727, for the
warning I have nothing.
was (Author: jbliznak):
I tried the easy approach of updating plugin to 1.6.1 and groovy to 2.5.2 but that only
leads to another warning ad the buidl crash:
{code:java}
[INFO] --- gmavenplus-plugin:1.6.1:execute (testsuite-default) @
jbossws-cxf-specific-tests ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1
(file:/home/jbliznak/.m2/repository/org/codehaus/groovy/groovy/2.5.2/groovy-2.5.2.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
[INFO] Using Groovy 2.5.2 to perform execute.
...
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.6.1:execute
(testsuite-default) on project jbossws-cxf-specific-tests: Error occurred while calling a
method on a Groovy class from classpath.: InvocationTargetException: BUG! exception in
phase 'semantic analysis' in source unit 'Script1.groovy' null:
UnsupportedOperationException -> [Help 1]{code}
The crash seems to be caused by
https://issues.apache.org/jira/browse/GROOVY-8727, for the
warning I have nothing.
JDK11 illegal reflective access warnings in gmavenplus-plugin
-------------------------------------------------------------
Key: JBWS-4138
URL:
https://issues.jboss.org/browse/JBWS-4138
Project: JBoss Web Services
Issue Type: Bug
Affects Versions: jbossws-cxf-5.2.3.Final
Reporter: Jan Blizňák
Priority: Major
When running build with JDK11, the execution of gmavenplus-plugin during testsuite prints
illegal reflective access warnings
{code:java}
[INFO] --- gmavenplus-plugin:1.5:execute (testsuite-default) @ jbossws-cxf-specific-tests
---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass
(file:/home/jbliznak/.m2/repository/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar)
to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of
org.codehaus.groovy.reflection.CachedClass
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
{code}
This will become problem in JDK 12
--
This message was sent by Atlassian Jira
(v7.12.1#712002)