Commit e53395f
committed
Avoid that empty method could be followed by another frame of exit advice that would be added at the same offset and therefore break an assumption on that two frames cannot be written to the same offset. Instead, write a padding NOP byte code when a method returns void to substitute for the single RETURN statement.
1 parent 1564e89 commit e53395f
File tree
2 files changed
+3
-6
lines changed- byte-buddy-dep/src/main/java/net/bytebuddy
- asm
- utility/visitor
2 files changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10710 | 10710 | | |
10711 | 10711 | | |
10712 | 10712 | | |
10713 | | - | |
| 10713 | + | |
| 10714 | + | |
| 10715 | + | |
10714 | 10716 | | |
10715 | 10717 | | |
10716 | 10718 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | 414 | | |
420 | 415 | | |
421 | 416 | | |
| |||
0 commit comments