Skip to content

Commit c880d09

Browse files
committed
Clarify tryCatchFinally docs
1 parent e665943 commit c880d09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/jvm/main/org/jetbrains/kotlinx/lincheck/transformation/TransformationUtils.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ internal fun GeneratorAdapter.storeArguments(methodDescriptor: String): IntArray
184184
/**
185185
* Executes a try-catch-finally block within the context of the GeneratorAdapter.
186186
*
187-
* Attention: this method does not insert `finally` blocks before inner return and throw statements.
187+
* **Attention**:
188+
* * This method does not insert `finally` blocks before inner return and throw statements.
189+
* * It is forbidden to jump from the blocks outside and between them.
190+
* * The operand stack must be empty by the beginning of the [tryCatchFinally].
188191
*
189192
* @param tryBlock The code block to be executed in the try section.
190193
* @param exceptionType The type of exception to be caught in the `catch` section, or null to catch all exceptions.

0 commit comments

Comments
 (0)