You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`.
0 commit comments