Skip to content

If MyListWrapper is a record type, it will not compile. #420

@zzl221000

Description

@zzl221000

MyListWrapper.java

@Json
public record MyListWrapper<T>(List<T> list) {

}

Changing the code to a record type will result
compilation failure: incompatible types: java.lang.Object cannot be converted to java.util.List.

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