mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-10 10:16:46 +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,33 @@
|
||||
package a;
|
||||
|
||||
import lombok.experimental.ExtensionMethod;
|
||||
|
||||
@ExtensionMethod(Extensions.class)
|
||||
class ExtensionMethodNames {
|
||||
|
||||
public void instanceCalls() {
|
||||
(new Test()).ext();
|
||||
|
||||
Test t = new Test();
|
||||
t.ext();
|
||||
|
||||
Test Test = new Test();
|
||||
Test.ext();
|
||||
}
|
||||
|
||||
public void staticCalls() {
|
||||
Test.ext();
|
||||
a.Test.ext();
|
||||
}
|
||||
}
|
||||
|
||||
class Extensions {
|
||||
public static void ext(Test t) {
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void ext() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user