You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The concat() method in the per-type primitive utility classes throws unexpected NegativeArraySizeException or ArrayIndexOutOfBoundsException if the input arrays contain too many elements.
NegativeArraySizeException is being thrown if there is an overflow ending up with a negative int. In this case, the result array cannot be constructed with this number.
ArrayIndexOutOfBoundsException is being thrown if there is an overflow ending up with a non-negative int. In this case, the result array will be shorter than expected and System.arraycopy() will throw AIOOBE.