Jim, Here is an updated webrev: http://cr.openjdk.java.net/~lbourges/path2D/Path2D_needRoom.3/
The same copyOf() change would apply to the method that grows the types > array. > Fixed. > I created https://bugs.openjdk.java.net/browse/JDK-8078464 for this part > of the fix... > Thanks, I added the bugId in the Path2DGrow test. PS: trimToSize() methods were removed in this webrev but will be added later for the other part of the fix (JDK9 only). Laurent