If array property contents are split across separate elements, earlier values are overwritten
See original GitHub issueFile file = new File("data.xml");
XmlMapper xmlMapper = new XmlMapper();
List<MyClass> value = Arrays.asList(xmlMapper.readValue(file, MyClass[].class));
value.size();
output cannot exceed 100 no matter how many in the xml file
it’s like there is limit that i dont know of or it’s a but
Using:
Linux Mint 18.2
Spring Boot 1.5.4.RELEASE
Jackson 2.8.8 and i tried almost all of them still the same
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Array stored in array gets overwritten to the contents of the ...
Create a new array in each iteration, separate from any previous iteration's array. You can do this by moving the declaration of the...
Read more >Data Structures: Objects and Arrays
It is called an array and is written as a list of values between square brackets, separated by commas. edit & run code...
Read more >Understanding Arrays in JavaScript
Modifying Items in Arrays We can overwrite any value in an array by assigning a new value using the assignment operator, just like...
Read more >Array methods
Arrays provide a lot of methods. To make things easier, in this chapter they are split into groups. Add/remove items.
Read more >Chapter 7: Arrays
The syntax for storing a value in an array element is: ... If we changed the numbers array to have a different number...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In former case, parser really should do that, but for latter it would be nice if it would be considered an error case. Currently this is unfortunately not possible since there is not tracking for values being set. But I will re-phrase issue title so that this can be considered an improvement idea.
It would be better if Jackson throw an exception in this case.