8000 Add missing type erasure in ClassOrInterfaceType.toDescriptor by johanneskloos · Pull Request #4522 · javaparser/javaparser · GitHub
[go: up one dir, main page]

Skip to content

Conversation

johanneskloos
Copy link
Contributor

Fixes #4519.

This fixes a bug in toDescriptor where we try to derive binary names of non-erased types (which may be type variables or wildcards, and therefore not have binary names) by always looking at the erasure.

@johanneskloos johanneskloos force-pushed the johanneskloos/4519-add-missing-type-erasure branch from 25dfcc0 to 5799942 Compare August 12, 2024 11:13
use the erased type. This matches up with the requirement
that descriptors reference binary names of objects, and
may not contain generic information.
@johanneskloos johanneskloos force-pushed the johanneskloos/4519-add-missing-type-erasure branch from 5799942 to 4d54d9b Compare August 13, 2024 12:53
@jlerbsc jlerbsc merged commit 1f80af4 into javaparser:master Aug 14, 2024
@jlerbsc
Copy link
Collaborator
jlerbsc commented Aug 14, 2024

This PR seems correct to me. Thank you for your contribution.

@jlerbsc jlerbsc added this to the next release milestone Aug 14, 2024
@jlerbsc jlerbsc added the PR: Fixed A PR that offers a fix or correction label Aug 14, 2024
@johanneskloos johanneskloos deleted the johanneskloos/4519-add-missing-type-erasure branch August 15, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Fixed A PR that offers a fix or correction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ResolvedMethodDeclaration.toDescription fails in the presence of type variables
2 participants
0