[jbosstools-issues] [JBoss JIRA] Closed: (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.
Anton Klimkovich (JIRA)
jira-events at lists.jboss.org
Fri Jun 20 11:03:37 EDT 2008
[ http://jira.jboss.com/jira/browse/JBIDE-2328?page=all ]
Anton Klimkovich closed JBIDE-2328.
-----------------------------------
Verified on:
(2.1.2)
200806192021-nightly
and
(3.0 alpha)
200806192047-nightly
> 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: Aliaksey Nis
> Fix For: 2.1.2, 3.0.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