RE: JavaClassFileOutputException: Stack underflow - FIXED

2004-07-16 Thread Johan Kumps
know. Kind regards, -Oorspronkelijk bericht- Van: Johan Kumps [mailto:[EMAIL PROTECTED] Verzonden: donderdag 15 juli 2004 13:26 Aan: [EMAIL PROTECTED] Onderwerp: JavaClassFileOutputException: Stack underflow Hi all, I'm trying to insert some code in the constructor of certain cl

RE: JavaClassFileOutputException: Stack underflow

2004-07-15 Thread Johan Kumps
: Stack underflow Instrumenting object initialization methods, methods with the special name (constructors are a Java programming language concept) require caution. Various discussions covered the topic, but it comes down to that all object initializers should invoke another object initializer

Re: JavaClassFileOutputException: Stack underflow

2004-07-15 Thread Dick Eimers
Instrumenting object initialization methods, methods with the special name (constructors are a Java programming language concept) require caution. Various discussions covered the topic, but it comes down to that all object initializers should invoke another object initializer either in the current

JavaClassFileOutputException: Stack underflow

2004-07-15 Thread Johan Kumps
ry.createInvoke("MySingleton", "myMethod", Type.VOID, new Type[] { Type.STRING, new ObjectType("MyObject") }, Constants.INVOKEVIRTUAL)); mg.setInstructionList(il); mg.setMaxStack(); When I decompile the patched class the method to which I inserted the code has dissape