[jira] [Created] (GROOVY-9013) Fix Warning "Illegal reflective access by org.codehaus.groovy.reflection.CachedClass"
Venugopal created GROOVY-9013: - Summary: Fix Warning "Illegal reflective access by org.codehaus.groovy.reflection.CachedClass" Key: GROOVY-9013 URL: https://issues.apache.org/jira/browse/GROOVY-9013 Project: Groovy Issue Type: Improvement Environment: JDK 11.0.2 and SpringBoot 2.1.3-RELEASE Reporter: Venugopal I'm running JDK11.0.2 with springboot 2.1.3-RELEASE. When I am running the Built Jar with JDK 11.0.2 I am facing the below issue. Command: java -jar WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (jar:file:/target/!/BOOT-INF/lib/groovy-all-2.4.12-indy.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 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (GROOVY-9013) Fix Warning "Illegal reflective access by org.codehaus.groovy.reflection.CachedClass"
[ https://issues.apache.org/jira/browse/GROOVY-9013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Venugopal updated GROOVY-9013: -- Description: I'm running JDK11.0.2 with springboot 2.1.3-RELEASE. When I am running the Built Jar with JDK 11.0.2 I am facing the below issue. Command: java -jar WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (jar:file:/target/!/BOOT-INF/lib/groovy-all-2.4.12-indy.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 was: I'm running JDK11.0.2 with springboot 2.1.3-RELEASE. When I am running the Built Jar with JDK 11.0.2 I am facing the below issue. Command: java -jar WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (jar:file:/target/!/BOOT-INF/lib/groovy-all-2.4.12-indy.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 > Fix Warning "Illegal reflective access by > org.codehaus.groovy.reflection.CachedClass" > - > > Key: GROOVY-9013 > URL: https://issues.apache.org/jira/browse/GROOVY-9013 > Project: Groovy > Issue Type: Improvement > Environment: JDK 11.0.2 and SpringBoot 2.1.3-RELEASE >Reporter: Venugopal >Priority: Major > > I'm running JDK11.0.2 with springboot 2.1.3-RELEASE. When I am running the > Built Jar with JDK 11.0.2 I am facing the below issue. > Command: java -jar > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.codehaus.groovy.reflection.CachedClass > (jar:file:/target/!/BOOT-INF/lib/groovy-all-2.4.12-indy.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 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Resolved] (GROOVY-8953) Imported enum causes compilation bug preventing tests from compiling
[ https://issues.apache.org/jira/browse/GROOVY-8953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King resolved GROOVY-8953. --- Resolution: Fixed Assignee: Paul King Fix Version/s: 2.4.17 2.5.7 3.0.0-alpha-5 Should be fixed in the next release (next week or two). It will only be observed on 2.5/3.0 with asmResolving disabled. > Imported enum causes compilation bug preventing tests from compiling > > > Key: GROOVY-8953 > URL: https://issues.apache.org/jira/browse/GROOVY-8953 > Project: Groovy > Issue Type: Bug > Environment: JDK 8 > groovy-all:2.4.+ >Reporter: Rhys Cox >Assignee: Paul King >Priority: Minor > Fix For: 3.0.0-alpha-5, 2.5.7, 2.4.17 > > Attachments: groovy-8953.zip > > Time Spent: 20m > Remaining Estimate: 0h > > In early December our spock tests were compiling fine, but at the start of > this year they're all breaking with the following error: > Error:Groovyc: While compiling tests of REDACTED: BUG! exception in phase > 'semantic analysis' in source unit 'REDACTEDSpec.groovy' Constructor > parameter annotations length [5] does not match the parameter length: private > REDACTEDENUMCLASS(java.lang.String,int,int,java.lang.String,ANOTHERREDACTEDENUMCLASS,java.lang.String,java.util.regex.Pattern) > at > org.codehaus.groovy.vmplugin.v5.Java5.getConstructorParameterAnnotations(Java5.java:438) > at > org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:386) > at org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:280) > at > org.codehaus.groovy.ast.ClassNode.getDeclaredMethods(ClassNode.java:877) > at org.codehaus.groovy.ast.ClassNode.getMethods(ClassNode.java:892) > at > org.codehaus.groovy.ast.ClassNode.hasPossibleStaticMethod(ClassNode.java:1313) > at > org.codehaus.groovy.control.StaticImportVisitor.findStaticMethod(StaticImportVisitor.java:597) > at > org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessorByFullName(StaticImportVisitor.java:565) > at > org.codehaus.groovy.control.StaticImportVisitor.findStaticPropertyAccessor(StaticImportVisitor.java:532) > at > org.codehaus.groovy.control.StaticImportVisitor.findStaticFieldOrPropAccessorImportFromModule(StaticImportVisitor.java:440) > at > org.codehaus.groovy.control.StaticImportVisitor.transformVariableExpression(StaticImportVisitor.java:198) > at > org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:99) > at > org.codehaus.groovy.ast.expr.Expression.transformExpressions(Expression.java:51) > at > org.codehaus.groovy.ast.expr.ArgumentListExpression.transformExpression(ArgumentListExpression.java:69) > at > org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:117) > at > org.codehaus.groovy.ast.expr.ConstructorCallExpression.transformExpression(ConstructorCallExpression.java:50) > at > org.codehaus.groovy.control.StaticImportVisitor.transformConstructorCallExpression(StaticImportVisitor.java:339) > at > org.codehaus.groovy.control.StaticImportVisitor.transform(StaticImportVisitor.java:114) > at > org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitField(ClassCodeExpressionTransformer.java:70) > at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1073) > at > org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:53) > at > org.codehaus.groovy.control.StaticImportVisitor.visitClass(StaticImportVisitor.java:78) > at > org.codehaus.groovy.control.CompilationUnit$13.call(CompilationUnit.java:692) > at > org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087) > at > org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624) > at > org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602) > at > org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579) > at > org.jetbrains.groovy.compiler.rt.GroovyCompilerWrapper.compile(GroovyCompilerWrapper.java:62) > at > org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.runGroovyc(DependentGroovycRunner.java:118) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.jetbrains.groovy.compiler.rt.GroovycRunner.intMain2(GroovycRunner.java:91) > at
[GitHub] asfgit merged pull request #885: GROOVY-8953: Imported enum causes compilation bug preventing tests fr…
asfgit merged pull request #885: GROOVY-8953: Imported enum causes compilation bug preventing tests fr… URL: https://github.com/apache/groovy/pull/885 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[jira] [Resolved] (GROOVY-9012) grape resolve command throws MissingPropertyException: No such property: arg
[ https://issues.apache.org/jira/browse/GROOVY-9012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Remko Popma resolved GROOVY-9012. - Resolution: Fixed Fixed in master and GROOVY_2_5_X branches. Cause: The resolve command implementation referred to a non-existing field 'arg'. This bug was introduced during the migration to picocli. The original implementation referred to both an {{arg}} property and the {{args}} property, which is also incorrect, but less impact-full (it only means that the validation to require at least 3 arguments is broken). Please verify. > grape resolve command throws MissingPropertyException: No such property: arg > > > Key: GROOVY-9012 > URL: https://issues.apache.org/jira/browse/GROOVY-9012 > Project: Groovy > Issue Type: Bug > Components: command line processing, Grape >Affects Versions: 2.5.6 >Reporter: Remko Popma >Assignee: Remko Popma >Priority: Major > Fix For: 2.5.7 > > > From the user mailing list: > {code} > $ groovy -v > Groovy Version: 2.5.6 JVM: 1.8.0_77 Vendor: Oracle Corporation OS: Mac OS X > {code} > > {code} > $ grape list | grep jcraft > com.jcraft jsch [0.1.42, 0.1.54, 0.1.55, 0.1.46, 0.1.53] > {code} > > {code} > $ grape resolve com.jcraft jsch 0.1.53 > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:110) > at > org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128) > Caused by: groovyjarjarpicocli.CommandLine$ExecutionException: Error while > running command (org.codehaus.groovy.tools.GrapeMain$Resolve@609e8838): > groovy.lang.MissingPropertyException: No such property: arg for class: > org.codehaus.groovy.tools.GrapeMain > at > groovyjarjarpicocli.CommandLine.execute(CommandLine.java:1168) > at > groovyjarjarpicocli.CommandLine.access$800(CommandLine.java:141) > at > groovyjarjarpicocli.CommandLine$RunLast.handle(CommandLine.java:1367) > at > groovyjarjarpicocli.CommandLine$RunLast.handle(CommandLine.java:1335) > at > groovyjarjarpicocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243) > at > groovyjarjarpicocli.CommandLine.parseWithHandlers(CommandLine.java:1526) > at > groovyjarjarpicocli.CommandLine.parseWithHandler(CommandLine.java:1465) > at > groovyjarjarpicocli.CommandLine$parseWithHandler$0.call(Unknown Source) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:135) > at > org.codehaus.groovy.tools.GrapeMain.main(GrapeMain.groovy:72) > ... 6 more > Caused by: groovy.lang.MissingPropertyException: No such property: arg for > class: org.codehaus.groovy.tools.GrapeMain > at > groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:1021) > at > groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1866) > at > groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1842) > at > groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3797) > at > org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:193) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:468) > at > org.codehaus.groovy.tools.GrapeMain$Resolve.propertyMissing(GrapeMain.groovy) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101) > at > groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:889) > at >
[jira] [Created] (GROOVY-9012) grape resolve command throws MissingPropertyException: No such property: arg
Remko Popma created GROOVY-9012: --- Summary: grape resolve command throws MissingPropertyException: No such property: arg Key: GROOVY-9012 URL: https://issues.apache.org/jira/browse/GROOVY-9012 Project: Groovy Issue Type: Bug Components: command line processing, Grape Affects Versions: 2.5.6 Reporter: Remko Popma Assignee: Remko Popma Fix For: 2.5.7 >From the user mailing list: {code} $ groovy -v Groovy Version: 2.5.6 JVM: 1.8.0_77 Vendor: Oracle Corporation OS: Mac OS X {code} {code} $ grape list | grep jcraft com.jcraft jsch [0.1.42, 0.1.54, 0.1.55, 0.1.46, 0.1.53] {code} {code} $ grape resolve com.jcraft jsch 0.1.53 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:110) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128) Caused by: groovyjarjarpicocli.CommandLine$ExecutionException: Error while running command (org.codehaus.groovy.tools.GrapeMain$Resolve@609e8838): groovy.lang.MissingPropertyException: No such property: arg for class: org.codehaus.groovy.tools.GrapeMain at groovyjarjarpicocli.CommandLine.execute(CommandLine.java:1168) at groovyjarjarpicocli.CommandLine.access$800(CommandLine.java:141) at groovyjarjarpicocli.CommandLine$RunLast.handle(CommandLine.java:1367) at groovyjarjarpicocli.CommandLine$RunLast.handle(CommandLine.java:1335) at groovyjarjarpicocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243) at groovyjarjarpicocli.CommandLine.parseWithHandlers(CommandLine.java:1526) at groovyjarjarpicocli.CommandLine.parseWithHandler(CommandLine.java:1465) at groovyjarjarpicocli.CommandLine$parseWithHandler$0.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:135) at org.codehaus.groovy.tools.GrapeMain.main(GrapeMain.groovy:72) ... 6 more Caused by: groovy.lang.MissingPropertyException: No such property: arg for class: org.codehaus.groovy.tools.GrapeMain at groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:1021) at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1866) at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1842) at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3797) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:193) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:468) at org.codehaus.groovy.tools.GrapeMain$Resolve.propertyMissing(GrapeMain.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101) at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:889) at groovy.lang.MetaClassImpl$12.getProperty(MetaClassImpl.java:2016) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:85) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309) at org.codehaus.groovy.tools.GrapeMain$Resolve.run(GrapeMain.groovy:235) at groovyjarjarpicocli.CommandLine.execute(CommandLine.java:1160) ... 17 more {code} {code} $ grape help resolve Enumerates the jars used by a grape Usage: grape resolve [-adhisv] ( )+ Prints the file locations of the jars representing the artifcats for the specified module(s) and the respective transitive dependencies. Parameters: Which module group the module comes from. Translates