Closed GoogleCodeExporter closed 9 years ago
I have just added a test based on your code:
http://code.google.com/p/snakeyaml/source/detail?r=0a7263bcccbbad371c8c925cc0381
6c91010dfa7
As you can see, the code works as expected. The anchor is not created:
http://code.google.com/p/snakeyaml/source/browse/src/test/java/org/yaml/snakeyam
l/issues/issue173/RecursiveAnchorTest.java
Please provide a test which gives more information.
Original comment by py4fun@gmail.com
on 30 Mar 2013 at 8:22
I don't understand what happened to make SnakeYaml add anchor like it did ...
I can send you a bunch of file that have been "corrupted" because of this, and
I don't have any idea on how it did happen.
I can't even reproduce it. The more annoying it happened to the user of my
application not in my test case.
Could an heavy load generate that kind of error ?
My application is a plugin for Bukkit.
Original comment by antoin...@gmail.com
on 30 Mar 2013 at 8:26
Any load can not make such an error.
It may happen when the value is not a string (like "test"), but more complex
(like a JavaBean). But this is again no bug.
Without a test we cannot do much here.
You probably have a lot of custom code (Representer, Constructor).
Original comment by py4fun@gmail.com
on 30 Mar 2013 at 9:37
Thi is my constructor :
https://github.com/Belphemur/AdminCmd/blob/master/src/main/java/be/Balor/Tools/C
onfiguration/File/YamlConstructor.java
And this is my representer :
https://github.com/Belphemur/AdminCmd/blob/master/src/main/java/be/Balor/Tools/C
onfiguration/File/ExtendedRepresenter.java
Original comment by antoin...@gmail.com
on 30 Mar 2013 at 9:43
This is a lot of code. You can try to remove the code (peace by peace) to
identify the peace which causes the problem.
Original comment by py4fun@gmail.com
on 31 Mar 2013 at 11:51
The issue is closed because it cannot be reproduced
Original comment by py4fun@gmail.com
on 10 Jul 2013 at 2:49
Original issue reported on code.google.com by
antoin...@gmail.com
on 29 Mar 2013 at 8:55