Skip to content

Mixin transformation fails when shadowing a static method non-statically #192

@Sollace

Description

@Sollace

In-between the earlier RC and the final 1.21.11 version, Mojang changed a method my mixin targets from non-static to static.

The result is the following crash when running a jar built on the prior RC in the final:

org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: STATIC modifier of @Shadow method method_73018 in minelp.mixin.json:MixinCopperGolemStatueModelRenderer from mod minelp does not match the target

I ran this past Llama and he seems to believe this kind of mixin shouldn't be breaking, and also when asked where I should report it he said probably here. ¯_(ツ)_/¯

I'm going to update my build regardless, but it would be nice to have a fix for this in mixin as well so the same problem doesn't happen to other projects in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions