From fb984396c64c1c23a98b6ed50f10945dc07aa8a0 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 27 Mar 2023 12:32:28 +0200 Subject: [PATCH] fix: bug in generating descriptors for anonymous class fields --- .../ftbsc/lll/processor/tools/containers/FieldContainer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/ftbsc/lll/processor/tools/containers/FieldContainer.java b/src/main/java/ftbsc/lll/processor/tools/containers/FieldContainer.java index 7dda102..555f113 100644 --- a/src/main/java/ftbsc/lll/processor/tools/containers/FieldContainer.java +++ b/src/main/java/ftbsc/lll/processor/tools/containers/FieldContainer.java @@ -100,7 +100,10 @@ public class FieldContainer { if(fieldType.getKind() == TypeKind.DECLARED) descriptor = //jank af but this is temporary anyway "L" + new ClassContainer( - fieldType.toString(), f.typeInner().split("//$"), env, mapper + fieldType.toString(), + f.typeInner().equals("") ? null : f.typeInner().split("//$"), + env, + mapper ).fqn.replace('.', '/') + ";"; else descriptor = descriptorFromType(fieldType); }