Skip to content

Wrong resolution of Multi-dimensional generic arrays #112

@cowtowncoder

Description

@cowtowncoder

(see #103 for background)

List<String>[][] loses its type parameter:

// Element type is GenericArrayType, not ParameterizedType, so falls through
if (elementType instanceof ParameterizedType) { ... }
return arrayType.getErasedType(); // Returns List[][] — String is lost

Possible fix:

if (elementType instanceof ParameterizedType || elementType instanceof GenericArrayType)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions