Am 12.12.2014 01:27, schrieb Matthias F. Brandstetter:
[...]
> Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
> Exception Details:
> Location:
> glow/GlowGame.<init>()V @16: invokeinterface
> Reason:
> Type uninitializedThis (current frame, stack[4]) is not assignable
> to 'java/lang/Object'
> Current Frame:
> bci: @16
> flags: { flagThisUninit }
> locals: { uninitializedThis,
> '[Lorg/codehaus/groovy/runtime/callsite/CallSite;' }
> stack: { uninitializedThis, 'java/lang/String',
> 'org/codehaus/groovy/runtime/callsite/CallSite',
> 'org/codehaus/groovy/runtime/callsite/CallSite', uninitializedThis }
> Bytecode:
> 0x0000000: b800 124c 2a12 142b 1215 322b 1216 322a
> 0x0000010: b900 1c02 00b9 001f 0200 b800 25c0 0027
> 0x0000020: 1229 122b b700 2e04 3d1c b800 3401 1236
> 0x0000030: 1238 b800 3e1c 57b1
This means the constructor for GlowGame has an bytecode error.
uninitializedThis is "this" in bytecode before the super call. since
stack has a CallSite, I strongly assume something is trying to make a
method call, before super is called. This is absolutely possible, if the
call is not done on "this". But this seems to be the case here.
This strongly suggests a situation like this:
class GlowGame {
GlowGame() {
super(foo()) // or this(foo())
}
....
}
I can see from the stack information that the call is without arguments
I think... anyway... do you have something like that in your code and is
foo a nonstatic method?
bye blackdrag
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog:
http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit
http://groovy-lang.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email