Skip to content

Generic parameter not resolved #218

Open
@Sam-Kruglov

Description

@Sam-Kruglov

Got an error here

unwrapGenericType(TypeUtils.determineTypeArguments(getRawClass(mostSpecificType), declaringType)[type]

I have a type Account extends AuditableEntity<Long> where AuditableEntity<Long> extends IdentifiableAdapter<Long> where IdentifiableAdapter<Long> implements Identifiable<Long>.
In this method determineTypeArguments returns a map or one entry: "T"(AuditableEntity) to Long. But then on this map [type] is used which returns null because the type is "T"(Identifiable).

This is kinda confusing but I am pretty sure this should just recognize the Long and return it.

I know I am not supposed to use raw JPA entities for mapping here and will just use DTOs and this will probably go away, but still looks like a bug though

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions