MultipleJdksHighlightingTest: yet another test
authorpeter <peter@jetbrains.com>
Wed, 21 Jan 2015 19:44:42 +0000 (20:44 +0100)
committerpeter <peter@jetbrains.com>
Wed, 21 Jan 2015 20:19:51 +0000 (21:19 +0100)
java/java-tests/testData/codeInsight/multipleJdks/java7/p/GenericComparator.java [new file with mode: 0644]
java/java-tests/testData/codeInsight/multipleJdks/java8/p/GenericComparator.java [new file with mode: 0644]
java/java-tests/testSrc/com/intellij/codeInsight/MultipleJdksHighlightingTest.java

diff --git a/java/java-tests/testData/codeInsight/multipleJdks/java7/p/GenericComparator.java b/java/java-tests/testData/codeInsight/multipleJdks/java7/p/GenericComparator.java
new file mode 100644 (file)
index 0000000..a1684ea
--- /dev/null
@@ -0,0 +1,10 @@
+package p;
+
+import java.util.*;
+import java.util.concurrent.*;
+
+abstract class B extends A {
+  void foo() throws Exception {
+    call().<error descr="Cannot resolve method 'stream()'">stream</error>();
+  }
+}
\ No newline at end of file
diff --git a/java/java-tests/testData/codeInsight/multipleJdks/java8/p/GenericComparator.java b/java/java-tests/testData/codeInsight/multipleJdks/java8/p/GenericComparator.java
new file mode 100644 (file)
index 0000000..692c4e4
--- /dev/null
@@ -0,0 +1,6 @@
+package p;
+import java.util.*;
+import java.util.concurrent.*;
+
+public abstract class A implements Callable<Collection<String>> {
+}
\ No newline at end of file
index f7b1cb2235d78c02a819bcdbeaaf64c579255dfc..a80d40064f96ce95a939f91969db78b37e558c0c 100644 (file)
@@ -110,6 +110,13 @@ public class MultipleJdksHighlightingTest extends UsefulTestCase {
     myFixture.checkHighlighting();
   }
 
+  @Bombed(month = Calendar.FEBRUARY, day = 20)
+  public void testGenericComparator() throws Exception {
+    final String name = getTestName(false);
+    myFixture.configureByFiles("java7/p/" + name + ".java", "java8/p/" + name + ".java");
+    myFixture.checkHighlighting();
+  }
+
   private void doTest() {
     final String name = getTestName(false);
     for (Module module : new Module[] {myJava7Module, myJava8Module}) {