Skip to content

JsonSerializable "c must be a member (not an anonymous or local) and static class." #16

@wjobin

Description

@wjobin

IMO, forcing inner class for POJO mapping is wrong. Should be "inner class must be static".

I changed the condition on JsonSerializable.java:437 to c.isMemberClass() && !Modifier.isStatic(c.getModifiers()) on my side and it works as expected.

I'd suggest changing all the alike conditions in the JsonSerializable.java.

William

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