[kepler-dev] [Bug 4942] KarXmlGenerator generated a invalid kar xml if KarEntry has dependsOnModule element

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Mon Apr 19 11:44:58 PDT 2010


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4942

--- Comment #5 from Jing Tao <tao at nceas.ucsb.edu> 2010-04-19 11:44:57 PDT ---
I dug code a little bit and found here is the code to generate the elements of
karEntryAttribute:

Attributes atts = entry.getAttributes();

for (Object att : atts.keySet()) {

     if (att instanceof Name) {

     Name attrName = (Name) att;
     String value = atts.getValue(attrName);
     karxml.append(tab + tab + tab + "<" + attrName + ">" + nl);
     karxml.append(tab + tab + tab + tab + value + nl);
     karxml.append(tab + tab + tab + "</" + attrName + ">" + nl);

}

Attribute class extends from Map class. The Set object generated by
atts.keySet() method doesn't have a fixed order. So the xml elements' order
will vary too (this means that the xml instance could be invalid).

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list