Skip to content

return 'net.jodah.typetools.TypeResolver$Unknown' #58

@luckypolaris

Description

@luckypolaris

Hi,bro:
I try to get the raw type from lambda expression like this:

public interface Callback<T> { void handler(List<T> result); }

Callback<String> callback = result -> { //do something }; Class<?>[] typeArgs = TypeResolver.resolveRawArguments(Callback.class, callback.getClass());
but I get the error type such as 'net.jodah.typetools.TypeResolver$Unknown'

so,how can I do?

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