Skip to content

Invoker remapping fails to consider target arguments #16

@Johni0702

Description

@Johni0702

Which will result in non-deterministic results if the source method has overloads, e.g. remapping from Fabric 1.19.3 to Forge:

import net.minecraft.sound.SoundEvent;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;

@Mixin(SoundEvent.class)
public interface SoundEventAccessor {

    @Invoker
    static SoundEvent invokeOf(Identifier identifier) {
        throw new AssertionError();
    }
}

may semi-randomly result in @Invoker("createFixedRangeEvent") instead of the expected @Invoker("createVariableRangeEvent").

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions