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

Parent class contains 6 constants that should be static

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx21
    • jfx20
    • javafx
    • b10

      The Parent class has the following constants that seems to be erroneously not declared static (and if they should not be, then a comment explaining why would be good).

          private final int LEFT_INVALID = 1;
          private final int TOP_INVALID = 1 << 1;
          private final int NEAR_INVALID = 1 << 2;
          private final int RIGHT_INVALID = 1 << 3;
          private final int BOTTOM_INVALID = 1 << 4;
          private final int FAR_INVALID = 1 << 5;

      These now consume space in every Parent instance, which is often the bulk of all nodes used in a scene graph.

            jhendrikx John Hendrikx
            jhendrikx John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: