Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276163

Deprecate for removal mistakenly exposed field from class javafx.scene.shape.Box

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • jfx18
    • javafx
    • None
    • source
    • minimal
    • No change in behavior other than a deprecation removal warning at compile time.
    • Java API
    • JDK

      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;

            aghaisas Ajit Ghaisas
            aghaisas Ajit Ghaisas
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: