summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/contribution/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-10-12 15:50:33 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-10-12 15:50:33 +0000
commitf3dc86430a464967caef5487931665c716281b68 (patch)
treea8d75b6231ff3ea9353943e92aca70aceb626787 /sca-java-2.x/trunk/modules/contribution/src
parent5bd7ebb83f8071139dfb7a4ccdc232d132411e31 (diff)
TUSCANY-3713 apply patch from Yang to process past non-whitespace before document start. Thanks Yang.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1021805 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/contribution/src')
-rw-r--r--sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java
index aa159ac629..5bf7e88779 100644
--- a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java
+++ b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ExtensibleStAXAttributeProcessor.java
@@ -140,7 +140,7 @@ public class ExtensibleStAXAttributeProcessor implements StAXAttributeProcessor<
// Delegate to the processor associated with the attribute QName
int event = source.getEventType();
if (event == XMLStreamConstants.START_DOCUMENT) {
- source.nextTag();
+ while (source.next() != XMLStreamReader.START_ELEMENT);
}
StAXAttributeProcessor<?> processor = null;