groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ocs@ocs.cz" <...@ocs.cz>
Subject java.lang.IllegalArgumentException, Groovy 2.4.7, _might_ be caused by Java 8
Date Sun, 30 Jul 2017 19:16:58 GMT
Hi there,

I have got the following code (part of a big project):

===
class AuctionTable extends SecureComponent {
    public AuctionTable(WOContext context) {
        super(context)
        showClosedAuctions=... some expression ... // the fail line 8, see please below
... ...
    }    
    boolean showClosedAuctions
... ...
===

which works without a glitch on my old computer (Java 1.7.0_13 / Mac OS X 10.8.5). Alas, it
reliably fails with my new one (Java 1.8.0_45 / Mac OS X 10.12.5) this way:

===
...
Caused by: java.lang.IllegalArgumentException
	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:497)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2705)
	at groovy.lang.ExpandoMetaClass.setProperty(ExpandoMetaClass.java:1185)
	at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3747)
	at components.sharedcode.OCSComponent.setProperty(OCSComponent.groovy)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.setGroovyObjectProperty(ScriptBytecodeAdapter.java:532)
	at components.sharedparts.AuctionTable.<init>(AuctionTable.groovy:8)
===

Does it make any sense? Can anybody here see the culprit and suggest a fix?

Thanks a lot,
OC


Mime
View raw message