[bugfix] Fix suppressBaseMethods in ecj/eclipse

This commit is contained in:
Rawi01 committed 2020-08-20 09:29:49 +02:00
1 parent 7dfbe4323c
commit 4d2ae4ba32
7 files changed
+153 -4

No files matched your search

@@ -0,0 +1,41 @@
import lombok.experimental.ExtensionMethod;
@ExtensionMethod(Extensions.class) class ExtensionMethodSuppress {
ExtensionMethodSuppress() {
super();
}
public void test() {
Test.staticMethod();
Test test = new Test();
Extensions.instanceMethod(test);
Extensions.staticMethod(test);
}
}
@ExtensionMethod(value = Extensions.class,suppressBaseMethods = false) class ExtensionMethodKeep {
ExtensionMethodKeep() {
super();
}
public void test() {
Test.staticMethod();
Test test = new Test();
test.instanceMethod();
test.staticMethod();
}
}
class Test {
Test() {
super();
}
public static void staticMethod() {
}
public void instanceMethod() {
}
}
class Extensions {
Extensions() {
super();
}
public static void staticMethod(Test test) {
}
public static void instanceMethod(Test test) {
}
}