From e545e4a3168a825e8c5e11db822dbbfe1e42cc45 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 9 Apr 2012 13:14:20 +0200 Subject: [PATCH] test data for IDEA-22547 --- .../pck/AmbiguousMethodCall.java | 30 +++++++++++++++++++ .../daemon/AdvHighlightingJdk7Test.java | 4 +++ 2 files changed, 34 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA22547/pck/AmbiguousMethodCall.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA22547/pck/AmbiguousMethodCall.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA22547/pck/AmbiguousMethodCall.java new file mode 100644 index 000000000000..e91fac521f97 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA22547/pck/AmbiguousMethodCall.java @@ -0,0 +1,30 @@ +/* + * Copyright 2000-2012 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package pck; + +import static pck.Assert.assertEquals; + +class Assert { + static void assertEquals(Object o1, Object o2) {} + + static void assertEquals(long l1, long l2) {} +} + +class Test { + void test() { + assertEquals(100L, Long.valueOf(100L)); + } +} \ 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 df35daebe098..192349c6d68c 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java @@ -181,4 +181,8 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase { doTestAmbiguous(); } + public void testAmbiguousIDEA22547() throws Exception { + doTestAmbiguous(); + } + }