mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 10:15:53 +00:00
[fixes #2261] Detect static method access properly
This commit is contained in:
1 parent
4d2ae4ba32
commit
75b7a88a45
4 files changed
+115
-7
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package a;
|
||||
import lombok.experimental.ExtensionMethod;
|
||||
@ExtensionMethod(Extensions.class) class ExtensionMethodNames {
|
||||
ExtensionMethodNames() {
|
||||
super();
|
||||
}
|
||||
public void instanceCalls() {
|
||||
a.Extensions.ext(new Test());
|
||||
Test t = new Test();
|
||||
a.Extensions.ext(t);
|
||||
Test Test = new Test();
|
||||
a.Extensions.ext(Test);
|
||||
}
|
||||
public void staticCalls() {
|
||||
Test.ext();
|
||||
a.Test.ext();
|
||||
}
|
||||
}
|
||||
class Extensions {
|
||||
Extensions() {
|
||||
super();
|
||||
}
|
||||
public static void ext(Test t) {
|
||||
}
|
||||
}
|
||||
class Test {
|
||||
Test() {
|
||||
super();
|
||||
}
|
||||
public static void ext() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user