Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-2328

If components.xml has some <property name="..."> then seam validator should check a proper setter OR a field. Now it cheks only a setter.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.2, 3.0.0.alpha
    • 2.1.0.GA
    • seam2
    • None

      EXECUTE: create seam project.
      EXECUTE: open Authenticator.java
      EXECUTE: Add a field: private String foo;
      EXECUTE: open components.xml
      EXECUTE: add
      <component name="authenticator">
      <property name="foo">TEST</property>
      </component>
      EXECUTE: build the project
      FAILURE: there is a error mark with message: Class "Authenticator" of component "authenticator" does not contain setter for property "foo".
      ASSERT: there is no any error.
      EXECTUE: Remove "private String foo;" from Authenticator.java
      EXECUTE: build the project
      ASSERT: there is the error message "Class "Authenticator" of component "authenticator" does not have a setter or a field for the property "foo" in problems view.

              anis_jira Aliaksey Nis (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: