Property methods, setters, and getters in printing API should be final

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • jfx18
    • Affects Version/s: jfx16
    • Component/s: javafx

      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.

            Assignee:
            Philip Race
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: