You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to call extension method on class that extends extension method target class, compilation will fail, that gonna work only if class is upcasted to its parent
To Reproduce
public class Test {
}
@ExtensionMethod(TestExtensions.class)
public class Test1 extends Test {
public void test() {
System.out.println(this.testExtensionMethod()); // Error
System.out.println(((Test) this).testExtensionMethod()) // No error
}
}
@UtilityClass
public class TestExtensions {
public static String testExtensionMethod(Test instance) {
return "testString";
}
}
Expected behavior
No error
Version info (please complete the following information):
Lombok vesion: 1.18.36
Platform: Gradle 7.5.1, Java 8
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to call extension method on class that extends extension method target class, compilation will fail, that gonna work only if class is upcasted to its parent
To Reproduce
Expected behavior
No error
Version info (please complete the following information):
Lombok vesion: 1.18.36
Platform: Gradle 7.5.1, Java 8
Additional context
The text was updated successfully, but these errors were encountered: