Skip to content

Wrong resolution of Multi-dimensional generic arrays #112

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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