-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lombok] Get field names directly from JavaClassImpl
Otherwise it fails with recursion on annotation types #KT-47513 Fixed (cherry picked from commit 1130344)
- Loading branch information
Andrey Zinovyev
authored and
Space
committed
Jun 30, 2021
1 parent
26c0b3d
commit 8538ed4
Showing
4 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
plugins/lombok/lombok-compiler-plugin/testData/compile/processErrors/annotationTypes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//FILE: Anno.java | ||
|
||
import java.lang.*; | ||
import java.lang.annotation.*; | ||
|
||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.SOURCE) | ||
public @interface Anno { | ||
String value() default "sdf"; | ||
} | ||
|
||
//FILE: Foo.java | ||
|
||
import lombok.*; | ||
import org.jetbrains.annotations.*; | ||
|
||
public class Foo { | ||
private Integer age = 10; | ||
private String name; | ||
} | ||
|
||
|
||
//FILE: test.kt | ||
|
||
@Anno | ||
class Test { | ||
fun run() { | ||
val obj = Foo() | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
.../lombok-compiler-plugin/tests/org/jetbrains/kotlin/lombok/LombokCompileTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.