Author: akazakov
Date: 2009-06-15 12:08:21 -0400 (Mon, 15 Jun 2009)
New Revision: 15957
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/duplicateComponents.test
Log:
https://jira.jboss.org/jira/browse/JBIDE-4393
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2009-06-15
16:02:13 UTC (rev 15956)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2009-06-15
16:08:21 UTC (rev 15957)
@@ -558,7 +558,7 @@
}
}
- String className = component.getClassName();
+ String className = declaration.getClassName();
if(className!=null) {
IType type = null;
// validate class name
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/duplicateComponents.test
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/duplicateComponents.test 2009-06-15
16:02:13 UTC (rev 15956)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/duplicateComponents.test 2009-06-15
16:08:21 UTC (rev 15957)
@@ -5,7 +5,7 @@
"http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-1.2.xsd
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-1.2.xsd">
- <component
class="org.domain.SeamWebWarTestProject.session.DuplicateComponent"
name="duplicateJavaAndXmlComponentName" precedence="20" />
- <component
class="org.domain.SeamWebWarTestProject.session.DuplicateComponent"
name="duplicateJavaAndXmlComponentName" precedence="20" />
+ <component
class="org.domain.SeamWebWarTestProject.session.DuplicateComponent"
name="duplicateJavaAndXmlComponentName" />
+ <component class="java.lang.String"
name="duplicateJavaAndXmlComponentName" />
</components>
\ No newline at end of file