java - IndexOutOfBoundsException: Index: 15, Size: 19 -
After
Then I was combed through some logs from our webserver on the second day (looking for something else) Strange caught my Eye
java.lang.IndexOutOfBoundsException: Index: 15, Size: 19 java.util.ArrayList.get at java.util.ArrayList.rangeCheck (unknown source) (unknown source) It seemed impossible for me
I have looked for source code and blown it out of my mind
private void RangeCheck (integer index) {if (index> = size) new indexOutOfBoundsException throw (outOfBoundsMsg (index)); } Based on the message that I should never have received.
Unfortunately, I do not know whether the content was actually at this time (it is said by code that is used for many things) and I am unable to reproduce it. I do not even know where I will start.
Question: Should this be able to happen? Is it messy in Java? Or just a freak accident.
I know that this topic may be closed. I believe what happened to me, there was more information about it, but I am not.
ArrayList is not multithread secure. It was another thread, modified by a thread in about the time of an access by the index & gt; = Size could have been true when the test was run, but by the false time the message was made.
Comments
Post a Comment