Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-1.2
-
None
Description
Java Common Annotations and APIs v1.0 - Sec 1.8.13:
1349 Properties may also be injected via public setter methods even when the @Property annotation is not
1350 present. However, the @Property annotation must be used in order to inject a property onto a non-public
1351 field. In the case where there is no @Property annotation, the name of the property is the same as the
1352 name of the field or setter.
Currently the properties are injected into unannotated protected fields too.
Attachments
Attachments
Issue Links
- is cloned by
-
TUSCANY-2289 Java runtime should not inject property into an unannotated non-public field by protected setter
- Closed