You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Peter Nagy <pe...@nokia.com> on 2004/01/16 03:27:16 UTC
one-liner fix in EnumerationSG.java
(Tell me if this is the right way to send fixes or not.)
reason:
Without this fix the generated code below won't even compile
protected void marshalChilds(org.apache.ws.jaxme.JMXmlSerializer.Data
pData, java.lang.Object pObject) throws org.xml.sax.SAXException {
test.Port _1 = (test.Port) pObject;
java.util.List _2 = _1.getService();
for (int _3 = 0; _3 < (_2).size(); _3++) {
test.Service _4 = (test.Service)_2.get(_3);
if (_4 != null) {
marshalAtomicChild(pData, __ser_Service_qname,
(test.Service)_2.get(_3).toString());
}
}
}
it should read
marshalAtomicChild(pData, __ser_Service_qname, _4.toString());
instead
patch:
Index: EnumerationSG.java
===================================================================
RCS file:
/home/cvspublic/ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/EnumerationSG.java,v
retrieving revision 1.1
diff -u -r1.1 EnumerationSG.java
--- EnumerationSG.java 23 Sep 2003 12:34:45 -0000 1.1
+++ EnumerationSG.java 16 Jan 2004 02:17:48 -0000
@@ -284,7 +284,7 @@
LocalJavaField f = pMethod.newJavaField(qName);
f.addLine(pValue);
pMethod.addIf(f, " != null");
- pSGlet.generate(pMethod, pValue);
+ pSGlet.generate(pMethod, f);
pMethod.addEndIf();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org