While reviewing JDK-8223717, I discovered that many of methods for the properties in (at least) JobSettings, PageRage, and PrinterJob are not final. In order to maintain the invariant that calling a setting is always the same as calling the set method of the property object, we make all property methods final, specifically, xxxxxProperty(), setXxxxx(), getXxxxx(), and isXxxxx(). Since the classes in question are all final, this isn't a problem in practice, but should be fixed nonetheless (e.g., to avoid copying that pattern to a class that isn't final or in case some day one of the affected classes is made non-final).
This change will need a CSR.
This change will need a CSR.
- csr for
-
JDK-8270381 Property methods, setters, and getters in printing API should be final
- Closed
- relates to
-
JDK-8223717 javafx printing: Support Specifying Print to File in the API
- Resolved