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

Inner classes with builder don't get introspected #11313

Merged
merged 4 commits into from
Nov 8, 2024

Conversation

radovanradic
Copy link
Contributor

@radovanradic radovanradic commented Nov 5, 2024

When an inner class is postponed to the next round the binary class name is used to perform a lookup of the refreshed class when processing gets to the next round. This is an issue because the canonical class name needs to be use to lookup elements. This changes the code to use getCanonicalName() which revealed another bug where the implementation of JavaClassElement.getCanonicalName() was not correct.

radovanradic and others added 2 commits November 5, 2024 16:42
@graemerocher graemerocher marked this pull request as ready for review November 7, 2024 14:43
@graemerocher graemerocher added type: improvement A minor improvement to an existing feature type: bug Something isn't working and removed type: bug Something isn't working labels Nov 7, 2024
@graemerocher graemerocher added type: bug Something isn't working and removed type: improvement A minor improvement to an existing feature labels Nov 7, 2024
@graemerocher graemerocher requested a review from yawkat November 7, 2024 16:52
Copy link

sonarqubecloud bot commented Nov 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 70%)

See analysis details on SonarCloud

@graemerocher graemerocher merged commit 05601d6 into 4.7.x Nov 8, 2024
20 of 21 checks passed
@graemerocher graemerocher deleted the lombok-builder-inner-class branch November 8, 2024 09:16
PeterFokkinga pushed a commit to PeterFokkinga/micronaut-core that referenced this pull request Nov 22, 2024
…#11313)

When an inner class is postponed to the next round the binary class name is used to perform a lookup of the refreshed class when processing gets to the next round. This is an issue because the canonical class name needs to be use to lookup elements. This changes the code to use `getCanonicalName()` which revealed another bug where the implementation of `JavaClassElement.getCanonicalName()` was not correct.

---------

Co-authored-by: Graeme Rocher <graeme.rocher@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants