JDK-8276163 : Deprecate for removal mistakenly exposed field from class javafx.scene.shape.Box
  • Type: CSR
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: openjfx18
  • Submitted: 2021-10-29
  • Updated: 2021-10-29
  • Resolved: 2021-10-29
Related Reports
CSR :  
Description
Summary
------- 
Class javafx.scene.shape.Box exposes a field by mistake. It is deprecated for removal.

Problem
-------

Class javafx.scene.shape.Box has a field named "DEFAULT_SIZE" which is mistakenly exposed. It should not be public.

Solution
--------

Deprecate for removal the mistakenly exposed class field so that it can be removed from the public API in a future version.

Specification
-------------
`javafx.scene.shape.Box`

```
+    /**
+     * Default size of the {@code Box}.
+     * @deprecated This field was exposed mistakenly and will be removed.
+     */
+    @Deprecated(since = "18", forRemoval = true)
     public static final double DEFAULT_SIZE = 2;
```
Comments
Moving to Approved.
29-10-2021

Looks good. This is simple enough that you can go straight to "Finalized" if you want.
29-10-2021