Skip to content

Commit

Permalink
Fixed tests failing after requiring minimal 1.8 compliance, part 6
Browse files Browse the repository at this point in the history
- AddImportTest
- BindingsNameTest
- JavaElementPropertyTesterTest
- OverrideTest
- GenerateHashCodeEqualsTest
- AdvancedQuickAssistTest
- AdvancedQuickAssistTest1d7
- AssistQuickFixTest1d8
- CleanUpStressTest
- CleanUpTest1d5
- CleanUpTest1d6
- JavadocQuickFixTest
- ModifierCorrectionsQuickFixTest1d7
- QuickFixEnablementTest
- TypeParameterMismatchTest
- InlineConstantTests
- InlineTempTests1d7

Muted test failure in InlineTempTests.test31() and created
https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/1552 for that, it
is is a bug in current implementation.

See eclipse-jdt/eclipse.jdt.core#2536
  • Loading branch information
iloveeclipse committed Jul 26, 2024
1 parent 3d32db8 commit 03f0918
Show file tree
Hide file tree
Showing 18 changed files with 1,031 additions and 1,217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class A {
<T extends Number> A(Map<T, T> map) { }

A() {
this(Collections.<Float, Float>emptyMap());
this(Collections.emptyMap());
Map<Float, Float> emptyMap= Collections.emptyMap();
Map<?, ?> emptyMap2= Collections.emptyMap();
new A(Collections.<Float, Float>emptyMap());
new A(Collections.emptyMap());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public A(T param){
field1 = param;
}
public static void main(String[] args) {
A.testFunction(new A<String>(null).getField());
A.testFunction(new A<>(null).getField());
}
public static void testFunction(String param){
System.out.println("S " + param);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ public void test30() throws Exception{
}

@Test
@Ignore("https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/1552")
public void test31() throws Exception{
helper1(8, 30, 8, 30);
}
Expand Down
Loading

0 comments on commit 03f0918

Please sign in to comment.