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

ObjectExpression.getValue() method should be final

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8
    • javafx
    • 8.0-graphics-scrum-b1339-x64

      It looks like shortcut methods such as ObjectExpression.getValue() should be final. Otherwise you have to override both get and getValue in order to alter their behavior. Is it too late to make them final?

      public abstract class ObjectExpression<T> implements ObservableObjectValue<T> {

          @Override
          public T getValue() {
              return get();
          }

          ....

      }

            msladecek Martin Sládeček
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: