Skip to content

Class.forName causes early loading of vanilla classes #10

@sakurawald

Description

@sakurawald

Mixin class are different from normal Java class.
The import statements in mixin class gets special treatment from mixin processor.
While static import cause the early class loading, which breaks the time sequence of class loading when mixin processor processes them.

The line

import static cn.revaria.chatplus.util.TextStyleFormatter.applyStyle;

will cause any other mixins who targets the imported classes loaded too early.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions