Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#47 bug in decompiling method-implementation

open
nobody
None
5
2005-09-22
2005-09-22
klar
No

Hi there,
I found a bug using JReversePro, when decompiling the
sourcecode of a class B that has a method containing
its own type B.

Here is the real implementation:

public B[] getBArray()
{
B[] bArray = new B[2];
return bArray;
}

and here is what I get:

public B[] getBArray()
{
byte i = new byte[2];
return (i);
}

This seems to occure, because B is also the name of the
primitive type 'byte'.

In reality this case might not occure, because normally
classes have longer names and aren't located in the
default package, but I just want to tell you about this
bug.

Anyway I find your program very useful and cool and I
make use of it in a program that takes Java-ByteCode as
input and produces a UML Diagram containing the UML
representation of the Java class and its
methods-implementation.

Greetings
Felix

Discussion