You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by Erik Corry <er...@arbat.com> on 2004/01/07 13:26:11 UTC
Mysterious verification error
Hi
I am having a problem with a program similar to helloify
(I am hoping to use it to produce allocation and garbage
collection logs of running Java programs).
I have tried with both the 5.1 version and with the last
pre-Apache version. The BCEL-produced class file passes
Justice verification, but fails verification by Sun with
this error message:
Exception in thread "main" java.lang.ClassFormatError: HelloWorld (Field "this" has illegal signature "L<init>;")
The relevant files are available in
http://arbat.com/erik/verifiererror.tar.gz (5.9k)
Anyone recognise this error and what it means?
The problem only arises if I helloify the <init> method.
Yours,
--
Erik Corry I'd be a Libertarian, if they weren't all a
erik@arbat.com bunch of tax-dodging professional whiners. - B. Breathed.
---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org
Re: Mysterious verification error
Posted by Erik Corry <er...@arbat.com>.
Hi,
Replying to myself.
In the BCEL version of the method there is no LocalVariableTable.
I added
mg.stripAttributes(true);
and now it works. According to the BCEL docs this should be
the default, so it looks like a buglet to me.
Yours,
--
Erik Corry I'd be a Libertarian, if they weren't all a
erik@arbat.com bunch of tax-dodging professional whiners. - B. Breathed.
---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org