Issue regarding hugeLength() method of ArraysSupport class in java.internal.util package
Ananya Nayak
ananyanayak102 at gmail.com
Wed Jul 27 06:18:44 UTC 2022
Ok, will do that.
On Wed, 27 Jul 2022, 11:42 David Holmes, <david.holmes at oracle.com> wrote:
> Hi,
>
> Please take this core core-libs-dev as this is not a build issue.
>
> Thanks,
> David
>
> On 27/07/2022 1:50 am, Ananya Nayak wrote:
> > After analysing the method declaration carefully I realized some bugs in
> > the code:
> >
> > 1. the if condition on seeing min length as less than 0 returns out
> > of memory error with a message that "required length is too large"
> > which is contradictory to what we are checking in the condition.
> > 2. We should actually return the out of memory error when it exceeds
> > the SOFT_ARRAY_MAX_LENGTH
> > 3. Moreover we are returning minLength in the third condition when we
> > actually shouldn't because it exceeds the limit
> >
> > Kindly verify this.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20220727/424b25f0/attachment.htm>
More information about the build-dev
mailing list