Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/PreciseRethrowCaptured.java
Aleksey Rostovskiy 185284cee6 get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
2019-05-27 15:08:08 +03:00

13 lines
359 B
Java

class ErrorTest {
public static <E1 extends Throwable> void rethrow(Thrower<? extends E1> thrower) {
try {
thrower.doThrow();
}
catch (Throwable e) {
<error descr="Unhandled exception: E1">throw e;</error>
}
}
interface Thrower<E extends Throwable> {
void doThrow() throws E;
}
}