UcasRichard / snakeyaml

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

YAML to POJO error on properties with spaces. #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Java class load yaml into a POJO.
2. Load a file with a property that has a space in the name.

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

The parser should drop the whitespace and camelcase the property to match the 
POJO's property. The parser errors because it is unable to match the yaml file 
property to a POJO property.

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

Please provide any additional information below. (Often a failing test is
the best way to describe the problem.)

Original issue reported on code.google.com by dustin.w...@gmail.com on 5 Nov 2013 at 3:03

GoogleCodeExporter commented 9 years ago
Well, this feature looks far too unclear to be implemented. 
What should happen if there are 2 spaces ? Or 3 tabs ?
How the properties must be serialised (with spaces or without) ?

Original comment by py4fun@gmail.com on 6 Nov 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Since there is no feedback, the issue is closed.

Original comment by py4fun@gmail.com on 20 Apr 2015 at 9:54