Skip to content

Inheritence of a Paramiterized type leads to a MappingException #4

@Sil0x0000

Description

@Sil0x0000

The following code produces a MappingException while is should expect that the schema-generator can deduct the type of the Parameter T.

class A extends B<Integer> {
}

class B<T> {
    T value;
    public T getValue() {
        return value;
    }
}

class Temp {
    public static void main(String[] args) {
        JSONObject schema = new SchemaMapper().toJsonSchema4(A.class, true);
        System.out.println(schema.toString());
    }
}

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