[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    [OpenJDK 2D-Dev] [9] Review Request: 8042103 Deserialization of empty java.awt.geom.Path2D will caus
From:       Sergey Bylokhov <Sergey.Bylokhov () oracle ! com>
Date:       2014-04-30 15:52:58
Message-ID: 53611C5A.8080303 () oracle ! com
[Download RAW message or body]

Hello.
Please review the fix for jdk 9.
needRoom() method does not take into account that current array of types 
can be empty. In this case it fails to increase it.
I handle this case and increase the size of the array by 1 instead of 
INIT_SIZE, because I assume that the user intentionally try to decrease 
memory usage.

Bug: https://bugs.openjdk.java.net/browse/JDK-8042103
Webrev can be found at: http://cr.openjdk.java.net/~serb/8042103/webrev.00

-- 
Best regards, Sergey.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic