[
http://jira.jboss.com/jira/browse/JBIDE-2451?page=all ]
Viacheslav Kabanovich reassigned JBIDE-2451:
--------------------------------------------
Assignee: Alexey Kazakov (was: Viacheslav Kabanovich)
I have fixed incorrect handling of declarations in Seam model. However, failure still
takes place due to another reason: when declaration from components.xml is removed,
validator only checks components.xml, but not Test.java. Now, if you make any
insignificant change in Test.java (e.g. in comments) it will be revalidated (without any
update to Seam model) and error marker will appear. That means that Seam model works
correctly now. Do we have issue about associated files not revalidated as in this case
Test.java is associated with components.xml? If we have it, then this issue is fixed.
Seam validation rule "Only component class can have @Destroy
method" does not work.
-----------------------------------------------------------------------------------
Key: JBIDE-2451
URL:
http://jira.jboss.com/jira/browse/JBIDE-2451
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.0.0.alpha
Reporter: Alexey Kazakov
Assigned To: Alexey Kazakov
Fix For: 3.0.0.alpha
EXECUTE: Create seam war project.
EXECUTE: Create java class with @Destroy but without @Name:
...
public class Test {
@Destroy
public void destroyMethod(){}
}
EXECUTE: Add this class to components.xml: <component class="...Test"
name="testComponent" scope="application"/>
EXECUTE: build the project.
ASSERT: There is not error markers in Test.java
EXECUTE: Remove <component class="...Test" name="testComponent"
scope="application"/> from components.xml. Test.java is not component
anymore.
FAILURE: There is not error markers in Test.java. But there should be an error "Only
component class can have @Destroy method.."
There is not component "testComponent" anymore (that's rigth) in seam model
but there are java and xml seam decalarations in model (that's a problem).
--
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