IDEA-130807 (test added)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Thu, 9 Oct 2014 08:24:39 +0000 (10:24 +0200)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Thu, 9 Oct 2014 08:24:39 +0000 (10:24 +0200)
plugins/java-decompiler/plugin/test/org/jetbrains/java/decompiler/IdeaDecompilerTest.java
plugins/java-decompiler/plugin/testData/Navigation.class
plugins/java-decompiler/plugin/testData/Navigation.java

index f99510e6625b10ed6fe54189301ed2b417fac825..c8e275cdfb22aeb3c8e9ca59c140f1cd9bde5822 100644 (file)
@@ -111,6 +111,8 @@ public class IdeaDecompilerTest extends LightCodeInsightFixtureTestCase {
         assertEquals(2, myFixture.doHighlighting().size());
         myFixture.getEditor().getCaretModel().moveToOffset(offset(16, 28));  // int r: usage, declaration
         assertEquals(2, myFixture.doHighlighting().size());
+        myFixture.getEditor().getCaretModel().moveToOffset(offset(19, 24));  // throws: declaration, m4() call
+        assertEquals(2, myFixture.doHighlighting().size());
       }
     });
   }
index 0d906973a331d0709dd6d35fe34d7ce29057f0ce..8c6a4adb26943aca20332ee200a6cc6e7e655ff4 100644 (file)
Binary files a/plugins/java-decompiler/plugin/testData/Navigation.class and b/plugins/java-decompiler/plugin/testData/Navigation.class differ
index b363ee37ad0627a08f7ec56ae1550a17c6e4770d..35ff8969a9907f8e398b1ef67aadb2626e511b84 100644 (file)
@@ -7,4 +7,10 @@ class Navigation {
     int r = 3 * i;
     System.out.println(r);
   }
+
+  void m3(boolean f) throws Exception {
+    if (f) m4();
+  }
+
+  void m4() throws Exception { }
 }
\ No newline at end of file