-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align method and field search algorithms with Java semantics
This commit modifies the method and field search algorithms in ReflectionUtils in order to align with standard Java semantics regarding whether a given field or method is visible or overridden according to the rules of the Java language. Specifically, this commit: - Renames isMethodShadowedBy() to isMethodOverriddenBy(). - Revises the logic in isMethodOverriddenBy() to determine if one method overrides another method according to the rules of the Java language. - Revises isFieldShadowedByLocalFields() to always return false for the time being. - Revises existing tests accordingly; introduces new tests for the new behavior; and disables existing tests for the legacy behavior. See #3553
- Loading branch information
Showing
8 changed files
with
337 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.