Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceHintsPredicates.forResource(TypeReference,String) doesn't support default package #29086

Closed
sbrannen opened this issue Sep 6, 2022 · 0 comments
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Sep 6, 2022

If the TypeReference supplied to ResourceHintsPredicates.forResource(TypeReference,String) is for a class declared in the default package (i.e., without a package), the resolveAbsoluteResourceName() method incorrectly prepends two leading slashes (//) to the absolute resource name, causing correct matches to fail.

@sbrannen sbrannen added type: bug A general bug for: backport-to-5.1.x Marks an issue as a candidate for backport to 5.1.x theme: aot An issue related to Ahead-of-time processing labels Sep 6, 2022
@sbrannen sbrannen added this to the 6.0.0-M6 milestone Sep 6, 2022
@sbrannen sbrannen self-assigned this Sep 6, 2022
@github-actions github-actions bot removed the for: backport-to-5.1.x Marks an issue as a candidate for backport to 5.1.x label Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant