We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse 2019-03 fails to compile code using ExtensionMethod whereas Maven does.
ExtensionMethod
Eclipse is reporting The method or(T, Supplier<T>) in the type MyExtensionsTest.MyExtensions is not applicable for the arguments (String)
The method or(T, Supplier<T>) in the type MyExtensionsTest.MyExtensions is not applicable for the arguments (String)
Here's a simplified test to reproduce:
@ExtensionMethod(MyExtensions.class) public class MyExtensionsTest { @Test public void test() { String v = "value"; assertThat( v.or( () -> "default" ), equalTo( "value" ) ); String n = null; assertThat( n.or( () -> "default" ), equalTo( "default" ) ); } public static class MyExtensions { public static <T> T or( T object, Supplier<T> ifNullProducer ) { return object != null ? object : ifNullProducer.get(); } } }
lombok 1.18.10 eclipse 2019-03 java 11 (zulu11.31.11 winx64) maven 3.6.1, same JDK
The text was updated successfully, but these errors were encountered:
Duplicate of #1441
Sorry, something went wrong.
No branches or pull requests
Eclipse 2019-03 fails to compile code using
ExtensionMethod
whereas Maven does.Eclipse is reporting
The method or(T, Supplier<T>) in the type MyExtensionsTest.MyExtensions is not applicable for the arguments (String)
Here's a simplified test to reproduce:
lombok 1.18.10
eclipse 2019-03
java 11 (zulu11.31.11 winx64)
maven 3.6.1, same JDK
The text was updated successfully, but these errors were encountered: