This PR would improve the exception you get when trying to read a variable's data that is too large. Previously, the long size would get narrowed to an int and overflow so you'd end up with a NegativeArraySizeException. I think an exception saying the request is too large is slightly nicer than the NegativeArraySizeException.
Description of Changes
This PR would improve the exception you get when trying to read a variable's data that is too large. Previously, the
long size
would get narrowed to anint
and overflow so you'd end up with aNegativeArraySizeException
. I think an exception saying the request is too large is slightly nicer than theNegativeArraySizeException
.PR Checklist