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 type argument annotation inheritance #228

Closed
wants to merge 3 commits into from

Conversation

andriy-dmytruk
Copy link
Collaborator

@andriy-dmytruk andriy-dmytruk commented Oct 17, 2023

Attempt fix for this issue in core: micronaut-projects/micronaut-core#9984.

This seemed to be a very complicated behavior to fix in core, so I attempted fixing it for validation only.
I think this should work as a solution for now, as not many other modules use type parameters and might not require their inheritance.

@altro3
Copy link
Contributor

altro3 commented Oct 17, 2023

@andriy-dmytruk Maybe need test case, when you have annotations in interface and in implementation controller together

@andriy-dmytruk andriy-dmytruk force-pushed the andriy/type-argument-inheritence-fix branch from 15a5ff0 to 5ca9504 Compare October 17, 2023 15:33
@andriy-dmytruk andriy-dmytruk marked this pull request as ready for review October 17, 2023 15:42
@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 2 Code Smells

90.7% 90.7% Coverage
0.0% 0.0% Duplication

@dstepanov
Copy link
Contributor

I would like to investigate the core fix

@dstepanov
Copy link
Contributor

I'm going to come up with a better API to get overridden methods; otherwise, this will be a major performance hit.

@sdelamo
Copy link
Contributor

sdelamo commented Jan 8, 2024

@dstepanov should this PR be moved to draft until we have an API in core?

@dstepanov
Copy link
Contributor

@sdelamo I put it to draft. I am going to finish it after the Core is released.

@dstepanov dstepanov force-pushed the andriy/type-argument-inheritence-fix branch from cabdd7f to d7668db Compare January 25, 2024 14:30
@dstepanov dstepanov requested a review from sdelamo January 25, 2024 14:31
@dstepanov dstepanov marked this pull request as ready for review January 25, 2024 14:31
@dstepanov
Copy link
Contributor

Looks like the method getOverriddenMethods doesn't work

@dstepanov dstepanov marked this pull request as draft January 25, 2024 14:40
@altro3
Copy link
Contributor

altro3 commented Feb 11, 2024

@dstepanov any news about this?

altro3 added a commit to altro3/micronaut-validation that referenced this pull request Feb 19, 2024
altro3 added a commit to altro3/micronaut-validation that referenced this pull request Feb 19, 2024
@dstepanov dstepanov closed this Feb 19, 2024
dstepanov pushed a commit that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants