Skip to content

Wrong resolution of Multi-dimensional generic arrays #112

Closed as not planned

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

  1. cowtowncoder commented on Dec 23, 2025

    @cowtowncoder
    MemberAuthor

    Not sure this actually fails....

  2. added a commit that references this issue on Dec 23, 2025
  3. cowtowncoder commented on Dec 23, 2025

    @cowtowncoder
    MemberAuthor

    False alarm: #103 was discussing problem with PR itself, NOT core resolution as it exists.
    Will add a unit test tho.

  4. added a commit that references this issue on Dec 23, 2025
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