question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If array property contents are split across separate elements, earlier values are overwritten

See original GitHub issue
File 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:open
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cowtowncodercommented, Dec 10, 2017

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.

0reactions
sohibegitcommented, Dec 10, 2017

It would be better if Jackson throw an exception in this case.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found