mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
multiple jdks: wrong resolve order tests bombed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package p;
|
||||
abstract class B extends A implements java.util.Comparator {
|
||||
{
|
||||
<error descr="Cannot resolve method 'reversed()'">reversed</error>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package p;
|
||||
public abstract class A implements java.util.Comparator {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package p;
|
||||
public abstract class A {
|
||||
void foo(L l) {
|
||||
l.stream();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.intellij.codeInsight;
|
||||
|
||||
import com.intellij.idea.Bombed;
|
||||
import com.intellij.openapi.application.ex.PathManagerEx;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.roots.ModifiableRootModel;
|
||||
@@ -28,6 +29,8 @@ import com.intellij.testFramework.builders.JavaModuleFixtureBuilder;
|
||||
import com.intellij.testFramework.fixtures.*;
|
||||
import com.intellij.util.Consumer;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
public class MultipleJdksHighlightingTest extends UsefulTestCase {
|
||||
|
||||
private CodeInsightTestFixture myFixture;
|
||||
@@ -84,7 +87,30 @@ public class MultipleJdksHighlightingTest extends UsefulTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
protected void doTest() {
|
||||
@Bombed(month = Calendar.FEBRUARY, day = 20)
|
||||
public void testWrongSuperInLibrary() throws Exception {
|
||||
final String name = getTestName(false);
|
||||
for (Module module : new Module[] {myJava7Module, myJava8Module}) {
|
||||
ModuleRootModificationUtil.updateModel(module, new Consumer<ModifiableRootModel>() {
|
||||
@Override
|
||||
public void consume(ModifiableRootModel model) {
|
||||
ClsGenericsHighlightingTest.commitLibraryModel(model, myFixture.getTestDataPath(), name + ".jar");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
myFixture.configureByFile("java8/p/" + name + ".java");
|
||||
myFixture.checkHighlighting();
|
||||
}
|
||||
|
||||
@Bombed(month = Calendar.FEBRUARY, day = 20)
|
||||
public void testWrongComparator() 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}) {
|
||||
ModuleRootModificationUtil.updateModel(module, new Consumer<ModifiableRootModel>() {
|
||||
|
||||
Reference in New Issue
Block a user