From d42a6fe40eacd8aca9697adda0eed61f66ab7d6c Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 7 Feb 2021 21:22:07 +0100 Subject: [fixes #2741] Handle inner method invocations first --- .../lombok/javac/handlers/HandleExtensionMethod.java | 5 +++-- .../resource/after-delombok/ExtensionMethodChain.java | 15 +++++++++++++++ .../resource/after-ecj/ExtensionMethodChain.java | 19 +++++++++++++++++++ .../resource/before/ExtensionMethodChain.java | 17 +++++++++++++++++ 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 test/transform/resource/after-delombok/ExtensionMethodChain.java create mode 100644 test/transform/resource/after-ecj/ExtensionMethodChain.java create mode 100644 test/transform/resource/before/ExtensionMethodChain.java diff --git a/src/core/lombok/javac/handlers/HandleExtensionMethod.java b/src/core/lombok/javac/handlers/HandleExtensionMethod.java index bda8c93a..8d42a82d 100644 --- a/src/core/lombok/javac/handlers/HandleExtensionMethod.java +++ b/src/core/lombok/javac/handlers/HandleExtensionMethod.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2014 The Project Lombok Authors. + * Copyright (C) 2012-2021 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -152,8 +152,9 @@ public class HandleExtensionMethod extends JavacAnnotationHandler