From 75b7a88a45f08dda24bb8dfe466acee0b10f3b40 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Thu, 20 Aug 2020 09:53:18 +0200 Subject: [fixes #2261] Detect static method access properly --- .../after-delombok/ExtensionMethodNames.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/transform/resource/after-delombok/ExtensionMethodNames.java (limited to 'test/transform/resource/after-delombok') 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 -- cgit