From f5546bc0c00069edbbfe8ca41450d84288b3c172 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 23 Nov 2012 20:42:39 +0100 Subject: [PATCH] IDEA-94934 (test case for already fixed issue) --- .../advHighlighting7/PreciseRethrow.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/PreciseRethrow.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/PreciseRethrow.java index 3cfe56144479..78587ef28339 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/PreciseRethrow.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/PreciseRethrow.java @@ -210,4 +210,22 @@ class C { throw e; } } + + void m13() throws E1 { + try { + try { + if (true) + throw new E1(); + else if (false) + throw new E2(); + } + catch (E1 | E2 e) { + e = new E(); + throw e; + } + } + catch (E2 e) { + throw new RuntimeException(e); + } + } } \ No newline at end of file