-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
8, 9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8186318 | 10 | Laurent Bourgès | P4 | Closed | Won't Fix |
There are no public method to trim the arrays on an existing path object to just the needed size for long term storage. This would be useful when an object will be kept in a static state for a long time and the added storage that was created for potential growth will never be used.
Workaround - the copy constructors do trim arrays so a saved path reference could be trimmed by copying it or cloning it and then saving that result, but it should be possible to do the same thing "in place".
Workaround - the copy constructors do trim arrays so a saved path reference could be trimmed by copying it or cloning it and then saving that result, but it should be possible to do the same thing "in place".
- backported by
-
JDK-8186318 Path2D storage trimming
-
- Closed
-
- csr of
-
CCC-8078192 Path2D storage trimming
-
- Draft
-
- duplicates
-
JDK-8186364 RFE: API for java.awt.geom.Path2D storage trimming
-
- Resolved
-