Skip to content

Ignore synthetic bridge methods in ProxyRules#1443

Merged
hankem merged 1 commit intomainfrom
ignore-synthetic-bridge-methods-in-ProxyRules
May 3, 2025
Merged

Ignore synthetic bridge methods in ProxyRules#1443
hankem merged 1 commit intomainfrom
ignore-synthetic-bridge-methods-in-ProxyRules

Conversation

@hankem
Copy link
Member

@hankem hankem commented Apr 6, 2025

Synthetic bridge methods generated for methods overriding parameterized methods give false-positive violations of the com.tngtech.archunit.library.ProxyRules (introduced with #539).

With this PR, ProxyRules ignore calls from synthetic bridge methods (resolves #1193).

@codecholeric codecholeric force-pushed the ignore-synthetic-bridge-methods-in-ProxyRules branch from f312bdd to fc8a7cd Compare May 3, 2025 15:39
@codecholeric
Copy link
Collaborator

I added a suggestion as 8a8179c, what do you think?

resolves #1193

Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
Signed-off-by: Peter Gafert <peter.gafert@archunit.org>
@hankem hankem force-pushed the ignore-synthetic-bridge-methods-in-ProxyRules branch from 8a8179c to f57bfd3 Compare May 3, 2025 19:46
@hankem
Copy link
Member Author

hankem commented May 3, 2025

Cool, thanks!

@hankem hankem merged commit c8631c2 into main May 3, 2025
27 checks passed
@hankem hankem deleted the ignore-synthetic-bridge-methods-in-ProxyRules branch May 3, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recommended test for @Transactional does not work in combination with generic interface/super class

2 participants