SourceForge has been redesigned. Learn more.
Close

#39 if/while statements

open
nobody
None
5
2003-03-24
2003-03-24
No

At least in this example, it looks like an if statement followed by a
while loop is decompiled as a while loop *inside* the body of the if
statement:

boolean flag = l < 0L;
if(!flag)
{
l = -l;

}
for(; l <= (long)(-i) ; l /= i)
{

stringbuffer.append(Character.forDigit((int)(-(l % (long)i)), i));

}

is decompiled as

l = (i < 0) ? 1: 0;
if (l == 0) {
i = -
i;
for (;i <= (long)(-k);) {

stringbuffer.append(Character.forDigit((int)(-(i % (long)k)) ,
k));
i = i / (long)k;
}
}

Is this one of the bugfixes in
1.4.1? Because that's what I used.
This example comes from a
decompiled version of java.lang.Long in kaffe 0.9.2.

Discussion


Log in to post a comment.