Closed GoogleCodeExporter closed 9 years ago
Have you tried DumpOptions ?
<code language="java">
DumpOptions o = new DumpOptions();
o.setAllowReadOnlyProperties(true);
Yaml yaml = new Yaml(o);
</code>
Original comment by alexande...@gmail.com
on 7 Jul 2012 at 6:39
Sorry, didn't try yet. I was just curious why a missing setter affects the
serializing. I thought that getters must be enough.
From: snakeyaml@googlecode.com
To: Nikolaus Chorherr/AUT/CSC@CSC
Date: 07.07.2012 20:37
Subject: Re: Issue 153 in snakeyaml: Immutable object is not
serialized with yaml.dump
Original comment by nchor...@csc.com
on 9 Jul 2012 at 10:01
By default, SnakeYAML can only process classes that conform to the JavaBean
specification. A class without a setter is no JavaBean and it requires manual
definition.
Original comment by py4fun@gmail.com
on 9 Jul 2012 at 11:42
Original comment by py4fun@gmail.com
on 11 Jul 2012 at 2:30
Original issue reported on code.google.com by
nchor...@csc.com
on 7 Jul 2012 at 4:37Attachments: