[fixes #3954][fixes #3947] Suppress messages during resolution

This commit is contained in:
Rawi01 committed 2025-09-25 18:38:12 +02:00
1 parent e8fb46179f
commit 93e9bebf0a
11 files changed
+67 -32

No files matched your search

@@ -2,6 +2,8 @@
import java.util.function.Function;
public class ExtensionMethodInLambda {
private static final Function<String, String> testStatic = s -> ExtensionMethodInLambda.Extensions.reverse(s);
public void testSimple() {
String test = "test";
test = ExtensionMethodInLambda.Extensions.map(test, s -> ExtensionMethodInLambda.Extensions.reverse(s));
@@ -15,6 +15,9 @@ public @ExtensionMethod(value = ExtensionMethodInLambda.Extensions.class) class
return "0";
}
}
private static final Function<String, String> testStatic = (<no type> s) -> ExtensionMethodInLambda.Extensions.reverse(s);
<clinit>() {
}
public ExtensionMethodInLambda() {
super();
}
@@ -4,6 +4,8 @@ import lombok.experimental.ExtensionMethod;
@ExtensionMethod(value = ExtensionMethodInLambda.Extensions.class)
public class ExtensionMethodInLambda {
private static final Function<String, String> testStatic = s -> s.reverse();
public void testSimple() {
String test = "test";
test = test.map(s -> s.reverse());
@@ -1 +1 @@
19 cannot find symbol symbol: method invalid((s)->s.reverse()) location: variable test of type java.lang.String
21 cannot find symbol symbol: method invalid((s)->s.reverse()) location: variable test of type java.lang.String
@@ -1 +1,7 @@
6 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
7 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
8 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
9 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
10 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
11 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
12 Cannot use 'val' here because initializer expression does not have a representable type: Type cannot be resolved
@@ -1 +1 @@
19 The method invalid((<no type> s) -> {}) is undefined for the type String
21 The method invalid((<no type> s) -> {}) is undefined for the type String
@@ -1 +1 @@
17 cannot find symbol symbol: method invalid((s)->s.reverse()) location: variable test of type java.lang.String
19 cannot find symbol symbol: method invalid((s)->s.reverse()) location: variable test of type java.lang.String