Hi, Here is a first attempt to propose a Path2D patch (based on JDK10): http://cr.openjdk.java.net/~lbourges/path2D/Path2D-8078192.0/
JBS: https://bugs.openjdk.java.net/browse/JDK-8078192 Please review the Path2D changes, notably the javadoc (english) and the modified Path2DCopyConstructor test which checks all public Path2D methods on concrete classes (Path2D.Float, Path2D.Double, GeneralPath) after calling path.trimToSize() Cheers, Laurent