aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2023-01-09 23:10:45 +0100
committerRawi01 <Rawi01@users.noreply.github.com>2023-01-09 23:11:43 +0100
commit5f0582baeff8e0b69848c895454cb0684ae14a4c (patch)
treed340c6feaccd26cdb5b7d782cb3798bb76c652ca /src/core/lombok/javac/handlers
parent731bb185077918af8bc1e6a9e6bb538b2d3fbbd8 (diff)
downloadlombok-5f0582baeff8e0b69848c895454cb0684ae14a4c.tar.gz
lombok-5f0582baeff8e0b69848c895454cb0684ae14a4c.tar.bz2
lombok-5f0582baeff8e0b69848c895454cb0684ae14a4c.zip
[fixes #3274] Reset erasure_field of symbol
Diffstat (limited to 'src/core/lombok/javac/handlers')
-rw-r--r--src/core/lombok/javac/handlers/HandleUtilityClass.java7
1 files changed, 5 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;
}
}
}