Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Fullbright2013-03-19 21:36:08 +0000
committerPaul Fullbright2013-03-19 21:38:02 +0000
commit076f7c34108afa93330031b04d7fa49c86abf466 (patch)
treecc04f778e18010bf0c98f082d259b2fbfbb1d16e /jaxb/plugins
parent4f1149716de6f392a54b6ccdf19bdda52c933694 (diff)
downloadwebtools.dali-076f7c34108afa93330031b04d7fa49c86abf466.tar.gz
webtools.dali-076f7c34108afa93330031b04d7fa49c86abf466.tar.xz
webtools.dali-076f7c34108afa93330031b04d7fa49c86abf466.zip
MOXy allows multiple element names in XmlElements
Diffstat (limited to 'jaxb/plugins')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaXmlElementsMapping.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaXmlElementsMapping.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaXmlElementsMapping.java
index e2c5d11fc8..a01af43bab 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaXmlElementsMapping.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/java/ELJavaXmlElementsMapping.java
@@ -184,10 +184,8 @@ public class ELJavaXmlElementsMapping
@Override
protected void validateDuplicateQName(XmlElement xmlElement, Bag<QName> xmlElementQNames,
List<IMessage> messages) {
-
- if (getXmlPathsSize() == 0) {
- super.validateDuplicateQName(xmlElement, xmlElementQNames, messages);
- }
+ // no-op - MOXy allows duplicate xml element names, and uses the first
+ // xml element to determine what type is instantiated on reading
}
protected TextRange getXmlPathsTextRange() {

Back to the top