Hi,
> We use BCEL to generate proxies to interfaces and abstract
> classes. But
> for simplicily I will keep things to interfaces, as this
> shows the problem.
>
> Take the given interface:
>
> public interface MyInterface
> {
> void test(long a, long b);
> }
>
> The MethodGen.toString() ends up with:
>
> public void test(long arg0, long)
>
> Where it should be:
>
> public void test(long arg0, long arg1)
That's not so bad, although it shouldn't happen of course. It merely
states that the
name of the second parameter is unknown. This information is stored in
an optional
attribute, which may be added for debugging purposes.
Thus this should cause no harm in the generated class.
Actually I found the place in toString() that caused it :) I'll fix it.
Cheers
Markus
P.S. You may want to use listclass for a more readable view on the
generated class.