2009-09-29 08:23:54 UTC
Hello,
I have a problem with feature optimize of proguard. It removes my code and make me some problem ~~. Could anyone help me to solve that problem. I use proguard version 4.3 and also check with ver 3.9.
Here is my code:(It's so dummy ~~)
duraTime = duration;
new Thread()
{
public void run()
{
long startTime = System.currentTimeMillis();
long curTime = 0;
boolean isOff = false ;
Sound.On();
while(!isOff)
{
curTime = System.currentTimeMillis();
if(curTime > startTime + duraTime)
isOff = true;
}
Sound.Off();
}
}.start();
And the code after optimize (I use JAD to decompile byte code)
duraTime = i;
(new Thread() {
public final void run()
{
Sound.On();
Sound.Off();
}
}
Seem the loop had been removed * _ *.
Thanks for read it
Seal