Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
It was closed because of Jack as replacement of DX, but now when DX is again the main tool it should be fixed
Original report:
If I debugging code with multiple return statements, AS debugger jumps to the last one return 'statement' also when another should be used.
Here is simple example:
public int test() {
int row = 1;
if (row >= 0) {
int count = 10;
if (count > 0) {
return count;
} else {
return 0;
}
} else {
return -1;
}
}
When you will debug this code, you will see that AS will jump to the "return -1" after evaluating "if (count > 0) {", but count > 0 is true and next line should be used. Method return right value, the problem is only in the debugger.
Original XDA dev thread:
Here it more detailed analysis why it happen
Here is information about internal error created for this, but the link is probably bad because target issue is about Bluetooth.
So I decided that will be better to created new report because this is a really serious issue.