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

Fix regression where AliasFor is no longer recursive #8746

Merged
merged 7 commits into from
Feb 17, 2023

Conversation

graemerocher
Copy link
Contributor

@graemerocher graemerocher commented Feb 9, 2023

The Micronaut Test module is failing because bean replacements are not working correctly. It seems to be a regression in the way @AliasFor is processed since the change here works around the issue.

@github-actions
Copy link

github-actions bot commented Feb 9, 2023

❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/ntcstfy6qfwik

@graemerocher graemerocher marked this pull request as ready for review February 9, 2023 12:01
@graemerocher graemerocher marked this pull request as draft February 9, 2023 12:02
@github-actions
Copy link

❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/r5ccy7u7jvg3o

@github-actions
Copy link

❌ GraalVM CE CI 19 dev failed: https://ge.micronaut.io/s/dkdmvr22sl77e

@github-actions
Copy link

❌ Java CI failed: https://ge.micronaut.io/s/tqslbfujwyufg

@github-actions
Copy link

❌ Java CI failed: https://ge.micronaut.io/s/qmhhexg3jayci

@github-actions
Copy link

❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/i765czrjfvpri

@dstepanov dstepanov marked this pull request as ready for review February 16, 2023 10:16
@@ -37,7 +37,7 @@ class MyBean {
beanDefinition.getInjectedMethods()[0].name == 'setMyValue'
def metadata = beanDefinition.getInjectedMethods()[0].getAnnotationMetadata()
metadata.hasAnnotation(Property)
metadata.getValue(Property, "name", String).get() == 'endpoints.my-value'
metadata.getValue(Property, "name", String).get() == 'simple.my-value'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both tests are "testing" the broken functionality of ConfigurationReader where the value can be aliased multiple times incorrectly, correct use-case is for TestEndpoint1 to use base value.

@github-actions
Copy link

❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/3ko5tq6aiy7ze

@github-actions
Copy link

❌ Java CI failed: https://ge.micronaut.io/s/c7jypklo2or5u

@graemerocher graemerocher changed the title fix replaces regression Fix regression where AliasFor is no longer recursive Feb 16, 2023
@graemerocher graemerocher added this to the 4.0.0 milestone Feb 16, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.1% 97.1% Coverage
0.0% 0.0% Duplication

@graemerocher graemerocher merged commit 0d9d9e0 into 4.0.x Feb 17, 2023
@graemerocher graemerocher deleted the replaces-regression branch February 17, 2023 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants