Skip to content

Accessor #54

@MatrixAura

Description

@MatrixAura

Is there a way to implement non-Transformer-Class access to a class's non-public fields? I have come up with a solution:
in OtherClass:
((FooTransformer) (Object) fooInstance).bar();
in FooTransformer:
@CShadow(makePublic = true) public abstract void bar();
instead of the unsupported fooInstance.bar(); 。 Is this possible?

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