fix: bug in generating descriptors for anonymous class fields

This commit is contained in:
zaaarf 2023-03-27 12:32:28 +02:00
parent b9e1ae971e
commit fb984396c6
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -100,7 +100,10 @@ public class FieldContainer {
if(fieldType.getKind() == TypeKind.DECLARED) if(fieldType.getKind() == TypeKind.DECLARED)
descriptor = //jank af but this is temporary anyway descriptor = //jank af but this is temporary anyway
"L" + new ClassContainer( "L" + new ClassContainer(
fieldType.toString(), f.typeInner().split("//$"), env, mapper fieldType.toString(),
f.typeInner().equals("") ? null : f.typeInner().split("//$"),
env,
mapper
).fqn.replace('.', '/') + ";"; ).fqn.replace('.', '/') + ";";
else descriptor = descriptorFromType(fieldType); else descriptor = descriptorFromType(fieldType);
} }