-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow-up for non-warning nilary/nullary override with BeanProperty
Follow-up for PR 10450 which stopped the nilary / nullary override warning for synthesized BeanProperty getters. The fix only worked by accident. The BeanProperty annotation class is only meta-annotated to target the field, not the generated bean getter. However, `beanGetterSymbol.hasAnnotation(BeanPropertyAttr)` was still true because the annotation is an `ExtraLazyAnnotationInfo`, which overrides `symbol` to always return the initial symbol even after the underlying `LazyAnnotationInfo` is mapped to `UnmappableAnnotation` by annotation filtering (`Namer.annotSig.computeInfo`). This PR changes `ExtraLazyAnnotationInfo.symbol` to call `super.symbol` if the underlying `LazyAnnotationInfo` is forced. To fix the check in RefChecks, `BeanProperty` and `BooleanBeanProperty` are now meta-annotated with `@beanGetter` and `@beanSetter`.
- Loading branch information
Showing
4 changed files
with
16 additions
and
10 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