Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2271

Java runtime should not inject property into an unannotated non-public field

    XMLWordPrintableJSON

Details

    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

        1. TUSCANY-2271.patch
          1 kB
          Vamsavardhana Reddy
        2. TUSCANY-2271-vtest.patch
          4 kB
          Vamsavardhana Reddy

        Issue Links

          Activity

            People

              simonslaws Simon Laws
              vamsic Vamsavardhana Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: