youxinren / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
Apache License 2.0
0 stars 0 forks source link

setSkipMissingProperties fails for non-scalar values #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Edit 
src/test/java/org/yaml/snakeyaml/issues/issue154/MissingPropertyTest.java
2. On line 67, edit the doc string, append "\nfizz: [1]"
3. Rerun tests (mvn test)

What is the expected output? What do you see instead?

I would expect the test to pass, it fails.

What version of SnakeYAML are you using? On what Java version?

1.11-SNAPSHOT (built today)

Original issue reported on code.google.com by bmatheny...@tumblr.com on 5 Sep 2012 at 3:58

GoogleCodeExporter commented 9 years ago
Honestly I have no idea why this patch works but it fixes my issue.

Original comment by bmatheny...@tumblr.com on 5 Sep 2012 at 4:10

Attachments:

GoogleCodeExporter commented 9 years ago
Your patch is taken: 
http://code.google.com/p/snakeyaml/source/detail?r=9126dde66e636d45e49763e94fffc
8864eb42856

Try the latest SNAPSHOT.

(I do not know your name to mention in the fix: 
http://code.google.com/p/snakeyaml/wiki/changes)

Original comment by py4fun@gmail.com on 5 Sep 2012 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by py4fun@gmail.com on 5 Sep 2012 at 6:33

GoogleCodeExporter commented 9 years ago
Yep, verified that this works. My name is Blake Matheny if you want it for the 
docs. Thanks for the quick turn around!

Original comment by bmatheny...@tumblr.com on 5 Sep 2012 at 6:41

GoogleCodeExporter commented 9 years ago
You are welcome. Thank you for your time and efforts.

The fix will provided in version 1.11 (to be released this month)

Original comment by py4fun@gmail.com on 5 Sep 2012 at 9:00