]
Dan Allen commented on JBSEAM-2317:
-----------------------------------
Oh, and here is an example (which is from the test case I have written)
<?xml version="1.0" encoding="UTF-8"?>
<component
xsi:schemaLocation attribute should be ignored on fine-grained
component.xml files
----------------------------------------------------------------------------------
Key: JBSEAM-2317
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2317
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.GA
Reporter: Dan Allen
Assigned To: Dan Allen
Priority: Minor
Fix For: 2.0.1.GA
Attachments: JBSEAM-2317-v1.txt
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
Seam supports the use of fine-grained component deployment descriptors (files ending in
.component.xml). However, if you were to put XML schema attributes into this file, Seam
would mistakenly try to set the schemaLocation property on the component.
Caused by: java.lang.IllegalArgumentException: no such setter method:
org.jboss.seam.test.unit.component.ConfigurableComponent.schemaLocation
The solution for this is extremely simple and very backward compatible. We are obviously
not interested in any attribute which has a namespace corresponding to XML schema.
Therefore, this is a simple exclusion of attributes in this namespace:
!"http://www.w3.org/2001/XMLSchema-instance".equals(prop.getNamespaceURI());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: