Bug#585581: doesn't work with current libasm3-java

David Paleino dapal at debian.org
Tue Jun 15 11:08:17 UTC 2010


On Mon, 14 Jun 2010 21:43:06 +0200, Torsten Werner wrote:

> Hi David,

Hello,

> On Sat, Jun 12, 2010 at 12:49 AM, David Paleino <dapal at debian.org> wrote:
> > The problem is that DebuggingClassWriter.java tries to pass an integer to
> > asm's ClassWriter, which expects a boolean instead.
> 
> thanks for the analysis! May you provide a patch, please?

Looking at the sources, it seems like my analysis was completely wrong. And I
can't even remember how I came to that conclusion :) (I remember seeing a
"bool" somewhere, but can't find it anymore.. :/)

In fact, asm's ClassWriter has an init method accepting int:

    public ClassWriter(final int flags) {
        [..]
    }

And also the documentation says it's there:

    http://asm.ow2.org/asm32/javadoc/user/org/objectweb/asm/ClassWriter.html

So, I can't really say how to fix this. Maybe the "<init>(I)V" in the
stacktrace helps? (not being a Javist, I could only infer that "I" means
integer, but don't know what "V" means)

The only difference I can see is in the class init methods. Compare the one
above with:

public class DebuggingClassWriter extends ClassWriter {
    public DebuggingClassWriter(int flags) {
        super(flags);
    }
[..]
}

See, the only difference is the "final" keyword in ClassWriter. I don't know if
this could be related to the bug.

David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100615/86f04910/attachment.pgp>


More information about the pkg-java-maintainers mailing list