aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ExtensionMethodNames.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-08-20 09:53:18 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2020-08-20 09:53:18 +0200
commit75b7a88a45f08dda24bb8dfe466acee0b10f3b40 (patch)
treeeb9ce917345afe6bf37b9985ca19dd23de92f3dd /test/transform/resource/after-delombok/ExtensionMethodNames.java
parent4d2ae4ba3261ab2963c13649b3ba8f4b3881e9c3 (diff)
downloadlombok-75b7a88a45f08dda24bb8dfe466acee0b10f3b40.tar.gz
lombok-75b7a88a45f08dda24bb8dfe466acee0b10f3b40.tar.bz2
lombok-75b7a88a45f08dda24bb8dfe466acee0b10f3b40.zip
[fixes #2261] Detect static method access properly
Diffstat (limited to 'test/transform/resource/after-delombok/ExtensionMethodNames.java')
-rw-r--r--test/transform/resource/after-delombok/ExtensionMethodNames.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ExtensionMethodNames.java b/test/transform/resource/after-delombok/ExtensionMethodNames.java
new file mode 100644
index 00000000..45f76ee4
--- /dev/null
+++ b/test/transform/resource/after-delombok/ExtensionMethodNames.java
@@ -0,0 +1,27 @@
+package a;
+
+class ExtensionMethodNames {
+
+ 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 {
+ public static void ext(Test t) {
+ }
+}
+
+class Test {
+ public static void ext() {
+ }
+} \ No newline at end of file