Skip to content

Commit 865bd4b

Browse files
committed
Documentation: Why removing JSR/RET statements.
1 parent 632e70b commit 865bd4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

org.jacoco.core/src/org/jacoco/core/internal/flow/MethodSanitizer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
* This method visitor fixes two potential issues with Java byte code:
2020
*
2121
* <ul>
22-
* <li>Remove JSR instructions by inlining subroutines.</li>
22+
* <li>Remove JSR/RET instructions by inlining subroutines which are deprecated
23+
* since Java 6. The RET statement complicates control flow analysis as the jump
24+
* target is not explicitly given.</li>
2325
* <li>Remove code attributes line number and local variable name if they point
2426
* to invalid offsets which some tools create. When writing out such invalid
2527
* labels with ASM class files do not verify any more.</li>

0 commit comments

Comments
 (0)