[jboss-svn-commits] JBL Code SVN: r37956 - labs/jbosstm/branches/JBOSSTS_4_16/common/classes/com/arjuna/common/util/propertyservice.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Mar 27 16:10:33 EDT 2012
Author: tomjenkinson
Date: 2012-03-27 16:10:32 -0400 (Tue, 27 Mar 2012)
New Revision: 37956
Modified:
labs/jbosstm/branches/JBOSSTS_4_16/common/classes/com/arjuna/common/util/propertyservice/PropertiesFactory.java
Log:
JBTM-1078 AS7 uses a different parser and it recognizes properties as not having an attribute
Modified: labs/jbosstm/branches/JBOSSTS_4_16/common/classes/com/arjuna/common/util/propertyservice/PropertiesFactory.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_16/common/classes/com/arjuna/common/util/propertyservice/PropertiesFactory.java 2012-03-27 19:26:06 UTC (rev 37955)
+++ labs/jbosstm/branches/JBOSSTS_4_16/common/classes/com/arjuna/common/util/propertyservice/PropertiesFactory.java 2012-03-27 20:10:32 UTC (rev 37956)
@@ -184,7 +184,7 @@
parser.close();
break;
}
- if (event == XMLStreamConstants.START_ELEMENT) {
+ if (event == XMLStreamConstants.START_ELEMENT && parser.getAttributeCount() > 0) {
String key = parser.getAttributeValue(0);
StringBuffer buffer = new StringBuffer();
event = parser.next();
More information about the jboss-svn-commits
mailing list