-
Bug
-
Resolution: Incomplete
-
P4
-
None
-
8u92
-
x86_64
-
linux
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
boolean b = isCancelled(); //b == true
if (b)
return false; //This has not been executed
publishProgress(values); //Also not executed
return true; //Debugger comes here
Why? This is Android example, isCancelled() is boolean
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install Android Studio
2.Create a class extends AsyncTask<Void, Void, Void>
3.In implemented 'doInBackground' function paste theese lines of code
p.s. isCanceled checks AsyncTask.cancel(boolean) function
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
false return I expected
ACTUAL -
true returns
REPRODUCIBILITY :
This bug can be reproduced always.
SUPPORT :
YES
A DESCRIPTION OF THE PROBLEM :
boolean b = isCancelled(); //b == true
if (b)
return false; //This has not been executed
publishProgress(values); //Also not executed
return true; //Debugger comes here
Why? This is Android example, isCancelled() is boolean
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install Android Studio
2.Create a class extends AsyncTask<Void, Void, Void>
3.In implemented 'doInBackground' function paste theese lines of code
p.s. isCanceled checks AsyncTask.cancel(boolean) function
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
false return I expected
ACTUAL -
true returns
REPRODUCIBILITY :
This bug can be reproduced always.
SUPPORT :
YES