From e53c751c9665579988c0d5da697175579c968718 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 9 Apr 2012 13:07:33 +0200 Subject: [PATCH] test data for IDEA-21660 --- .../pck/AmbiguousMethodCall.java | 15 +++++++++++++++ .../daemon/AdvHighlightingJdk7Test.java | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java new file mode 100644 index 000000000000..fd7315d2f4bb --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java @@ -0,0 +1,15 @@ +package pck; + +class TestCase { + void assertEquals(Object o1, Object o2) {} + + void assertEquals(int i1, int i2) {} +} + +class Test extends TestCase { + void test() { + int expected = 1; + Integer actual = 2; + assertEquals(expected, actual); + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java index e3556fb167b4..df35daebe098 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java @@ -177,4 +177,8 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase { doTestAmbiguous(); } + public void testAmbiguousIDEA21660() throws Exception { + doTestAmbiguous(); + } + }