Closed GoogleCodeExporter closed 9 years ago
Oh, and a canonical dump does this, which also seems wrong (it is explicitly
declaring the JavaBean objects as maps)
---
!!DataSources {
? !!str "dataSources"
: !!seq [
&id001 !!map {
? !!str "name"
: !!null "null",
},
!!map {
? !!str "name"
: !!null "null",
? !!str "parent"
: *id001,
? !!str "password"
: !!null "null",
? !!str "url"
: !!null "null",
? !!str "username"
: !!null "null",
},
],
}
Original comment by derrick....@gmail.com
on 27 Jul 2009 at 9:26
Original comment by aso...@gmail.com
on 28 Jul 2009 at 6:30
Thank you for your time. The bug is fixed. (it will be released in version 1.4)
I have extended the test you provided. You can see it here:
http://code.google.com/p/snakeyaml/source/browse/src/test/java/org/yaml/snakeyam
l/issues/issue10/BasicDumpTest.java
testTag - your code
testTag2 - using JavaBeanDumper
testTag3 - different order. This order makes the global tag for DataSource
redundant.
Original comment by aso...@gmail.com
on 28 Jul 2009 at 8:11
Original comment by aso...@gmail.com
on 6 Aug 2009 at 10:00
Original issue reported on code.google.com by
derrick....@gmail.com
on 27 Jul 2009 at 9:03Attachments: