File tree 2 files changed +8
-7
lines changed
main/java/com/fasterxml/jackson/dataformat/xml/ser
test/java/com/fasterxml/jackson/dataformat/xml/failing
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,8 @@ public XmlBeanSerializerBase(BeanSerializerBase src)
63
63
{
64
64
super (src );
65
65
66
- /* Then make sure attributes are sorted before elements, keep track
67
- * of how many there are altogether
68
- */
66
+ // Then make sure attributes are sorted before elements, keep track
67
+ // of how many there are altogether
69
68
int attrCount = 0 ;
70
69
for (BeanPropertyWriter bpw : _props ) {
71
70
if (_isAttribute (bpw )) { // Yup: let's build re-ordered list then
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ static class Bean {
19
19
static class Container {
20
20
@ JacksonXmlProperty (isAttribute = true )
21
21
public String start = "!start" ;
22
-
23
- @ JacksonXmlProperty (isAttribute = true )
24
- public String end = "!end" ;
25
22
26
23
@ JacksonXmlProperty (isAttribute = true )
27
24
protected Bean bean = new Bean ();
25
+
26
+ @ JacksonXmlProperty (isAttribute = true )
27
+ public String end = "!end" ;
28
28
}
29
29
30
30
/*
@@ -37,7 +37,9 @@ static class Container {
37
37
38
38
public void testAttributeDeser128 () throws Exception
39
39
{
40
+ final String output = MAPPER .writeValueAsString (new Container ()).trim ();
41
+ //System.err.println(output);
40
42
assertEquals ("<root start=\" !start\" end=\" !end\" ><bean><value>42</value></bean></root>" ,
41
- MAPPER . writeValueAsString ( new Container ()). trim () );
43
+ output );
42
44
}
43
45
}
You can’t perform that action at this time.
0 commit comments