-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b89
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142835 | emb-9 | Andreas Eriksson | P3 | Resolved | Fixed | team |
JDK-8149310 | 8u101 | Andreas Eriksson | P3 | Resolved | Fixed | b01 |
JDK-8140580 | 8u92 | Andreas Eriksson | P3 | Resolved | Fixed | b01 |
JDK-8155495 | emb-8u101 | Andreas Eriksson | P3 | Resolved | Fixed | b01 |
$ jdb Main
Initializing jdb ...
> stop at Main:9
Deferring breakpoint Main:9.
It will be set after the class is loaded.
> run
run Main
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint Main:9
Breakpoint hit: "thread=main", Main.test(), line=9 bci=2
9 if (args.length < - 1) { // Any non-trivial condition evaluating to `false` would do
main[1] step
>
Step completed: "thread=main", Main.test(), line=10 bci=16
10 System.out.println("not null");
Source:
public class Main {
public static void main(String[] args) {
test(args);
}
public static Void test(String[] args) {
try {
return null;
} finally {
if (args.length < - 1) { // Any non-trivial condition evaluating to `false` would do
System.out.println("not null");
}
}
}
}
Initializing jdb ...
> stop at Main:9
Deferring breakpoint Main:9.
It will be set after the class is loaded.
> run
run Main
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint Main:9
Breakpoint hit: "thread=main", Main.test(), line=9 bci=2
9 if (args.length < - 1) { // Any non-trivial condition evaluating to `false` would do
main[1] step
>
Step completed: "thread=main", Main.test(), line=10 bci=16
10 System.out.println("not null");
Source:
public class Main {
public static void main(String[] args) {
test(args);
}
public static Void test(String[] args) {
try {
return null;
} finally {
if (args.length < - 1) { // Any non-trivial condition evaluating to `false` would do
System.out.println("not null");
}
}
}
}
- backported by
-
JDK-8140580 jdb: Incorrect stepping inside finally block
-
- Resolved
-
-
JDK-8142835 jdb: Incorrect stepping inside finally block
-
- Resolved
-
-
JDK-8149310 jdb: Incorrect stepping inside finally block
-
- Resolved
-
-
JDK-8155495 jdb: Incorrect stepping inside finally block
-
- Resolved
-