[jbosstools-issues] [JBoss JIRA] Created: (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.
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Jun 11 10:28:15 EDT 2008
If components.xml has some <property name="..."> then seam validator should check a proper setter OR a field. Now it cheks only a setter.
-----------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-2328
URL: http://jira.jboss.com/jira/browse/JBIDE-2328
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 2.1.0.GA
Reporter: Alexey Kazakov
Assigned To: Alexey Kazakov
Fix For: 2.1.2, 3.0.alpha
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list