diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2023-01-09 23:10:45 +0100 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2023-01-09 23:11:43 +0100 |
commit | 5f0582baeff8e0b69848c895454cb0684ae14a4c (patch) | |
tree | d340c6feaccd26cdb5b7d782cb3798bb76c652ca /src | |
parent | 731bb185077918af8bc1e6a9e6bb538b2d3fbbd8 (diff) | |
download | lombok-5f0582baeff8e0b69848c895454cb0684ae14a4c.tar.gz lombok-5f0582baeff8e0b69848c895454cb0684ae14a4c.tar.bz2 lombok-5f0582baeff8e0b69848c895454cb0684ae14a4c.zip |
[fixes #3274] Reset erasure_field of symbol
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleUtilityClass.java | 7 | ||||
-rw-r--r-- | src/stubs/com/sun/tools/javac/code/Symbol.java | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleUtilityClass.java b/src/core/lombok/javac/handlers/HandleUtilityClass.java index 716d6d63..b20aee3a 100644 --- a/src/core/lombok/javac/handlers/HandleUtilityClass.java +++ b/src/core/lombok/javac/handlers/HandleUtilityClass.java @@ -128,8 +128,11 @@ public class HandleUtilityClass extends JavacAnnotationHandler<UtilityClass> { JCClassDecl innerClassDecl = (JCClassDecl) element.get(); innerClassDecl.mods.flags |= Flags.STATIC; ClassSymbol innerClassSymbol = innerClassDecl.sym; - if (innerClassSymbol != null && innerClassSymbol.type instanceof ClassType) { - ((ClassType) innerClassSymbol.type).setEnclosingType(Type.noType); + if (innerClassSymbol != null) { + if (innerClassSymbol.type instanceof ClassType) { + ((ClassType) innerClassSymbol.type).setEnclosingType(Type.noType); + } + innerClassSymbol.erasure_field = null; } } } diff --git a/src/stubs/com/sun/tools/javac/code/Symbol.java b/src/stubs/com/sun/tools/javac/code/Symbol.java index f389f1a8..3a41edf9 100644 --- a/src/stubs/com/sun/tools/javac/code/Symbol.java +++ b/src/stubs/com/sun/tools/javac/code/Symbol.java @@ -25,6 +25,7 @@ public abstract class Symbol implements Element { public Type type; public Name name; public Symbol owner; + public Type erasure_field; public long flags() { return 0; } public boolean isStatic() { return false; } |