Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String index out of range during AP #560

Closed
shedaniel opened this issue Jan 31, 2022 · 1 comment · Fixed by #638
Closed

String index out of range during AP #560

shedaniel opened this issue Jan 31, 2022 · 1 comment · Fixed by #638

Comments

@shedaniel
Copy link

With the fix to #518 (1e1aa7f), Mixin tries to pretty print a field (asm field) with SignaturePrinter (works only with methods)

This doesn't crash in Mixin 0.8.4.

Type.getReturnType(desc) and Type.getArgumentTypes(desc): Expects a description with ):

this(name, Type.getReturnType(desc), Type.getArgumentTypes(desc));

TypeUtils uses it:

return new SignaturePrinter("", descriptor).setFullyQualified(true).toDescriptor();

TypeHandleASM uses it for anonymous classes for fields:

if (TypeHandleASM.compareElement(field.name, TypeUtils.getJavaSignature(field.desc), name, type, matchCase)) {

Mixin: (0.8.5 on 1.18 ForgeGradle)

@Mixin(targets = "net.minecraft.server.level.ServerPlayer$2")
public class ServerPlayerEntityMixin {
    @Shadow
    ServerPlayer f_143458_;
}

idea64_enUUjZVbyA

modmuss50 added a commit to FabricMC/Mixin that referenced this issue Jan 31, 2022
lukebemish added a commit to lukebemishprojects/DynamicAssetGenerator that referenced this issue Jul 29, 2023
@LlamaLad7 LlamaLad7 mentioned this issue Aug 12, 2023
@RubixDev
Copy link

I'm encountering this issue with Forge using Architectury. Is there maybe a way I could set it to use version 0.8.4 or the Fabric fork for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants