From c5e3693ce22b68566162c0f0b912b26b1209ed96 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 13 Aug 2013 11:12:44 +0200 Subject: [PATCH] testdata for IDEA-67836 --- .../pck/AmbiguousMethodCall.java | 19 +++++++++++++++++++ .../daemon/AdvHighlightingJdk7Test.java | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67836/pck/AmbiguousMethodCall.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67836/pck/AmbiguousMethodCall.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67836/pck/AmbiguousMethodCall.java new file mode 100644 index 000000000000..b42af5ac0642 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67836/pck/AmbiguousMethodCall.java @@ -0,0 +1,19 @@ +package pck; +import static pck.D.foo; +import static pck.C.foo; + +public class C { + public static String foo(Comparable> x){ + return null; + } +} + +class D { + public static void foo(Comparable x){} +} + +class B{ + public static void bar(){ + foo(1).toLowerCase(); + } +} \ 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 578681182960..d6cd808aef2d 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java @@ -203,6 +203,10 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase { doTestAmbiguous(); } + public void testAmbiguousIDEA67836() throws Exception { + doTestAmbiguous(); + } + public void testAmbiguousMethodsFromSameClassAccess() throws Exception { doTestAmbiguous(); }