Closed GoogleCodeExporter closed 9 years ago
Original comment by py4fun@gmail.com
on 16 Oct 2009 at 3:21
Original comment by py4fun@gmail.com
on 18 Oct 2009 at 9:25
Thanks to Benjamin Bentmann for the idea.
Example is here:
http://code.google.com/p/snakeyaml/source/browse/src/test/java/examples/collecti
ons/Typ
eSafeListTest.java
Only parsing is implemented.
When dumping the redundant global tags are still emitted.
Original comment by py4fun@gmail.com
on 20 Oct 2009 at 3:28
Nice.
Maybe somewhere in documentation should be mentioned that it does not work if
generic type is abstract class
(interface). You have to put an explicit tags in your yaml.
Or am I wrong?
Original comment by alexande...@gmail.com
on 21 Oct 2009 at 7:09
You are right. I have added a test to prove it:
http://code.google.com/p/snakeyaml/source/browse/src/test/java/examples/collecti
ons/Typ
eSafeListWithInterfaceTest.java
Original comment by py4fun@gmail.com
on 21 Oct 2009 at 10:40
Both parsing and dumping is implemented. Check
'http://code.google.com/p/snakeyaml/source/browse/#hg/src/test/java/examples/col
lection
s' for examples.
Original comment by py4fun@gmail.com
on 23 Oct 2009 at 10:26
Original issue reported on code.google.com by
py4fun@gmail.com
on 16 Oct 2009 at 3:20Attachments: