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

ObjectExpression.getValue() method should be final

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      8.0-graphics-scrum-b1339-x64

    • Subcomponent:

      Description

      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();
          }

          ....

      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: