summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-27 12:32:28 +0200
committer zaaarf <zaaarf@proton.me>2023-03-27 12:32:28 +0200
commitfb984396c64c1c23a98b6ed50f10945dc07aa8a0 (patch)
treec828e1608e6b9f6d7725dc4240c633ac604ff89e /src/main
parentb9e1ae971eddbe021543ce5a3dae1c77dc152138 (diff)
fix: bug in generating descriptors for anonymous class fields
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/ftbsc/lll/processor/tools/containers/FieldContainer.java5
1 files changed, 4 insertions, 1 deletions
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);
}