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

BooleanProperty: longish info message bubbles up in application code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8u40
    • None
    • javafx

      a snippet like

              BooleanProperty bp = new SimpleBooleanProperty();
              ObjectProperty<Boolean> op = new SimpleObjectProperty<>();
              bp.bindBidirectional(op);

      produces:

      Jun 12, 2014 4:45:43 PM javafx.beans.property.BooleanProperty setValue
      INFORMATION: Attempt to set boolean property to null, using default value instead.
      java.lang.NullPointerException
      at javafx.beans.property.BooleanProperty.setValue(BooleanProperty.java:74)
              ... many lines more

      information messages like that shouldn't show up: either the binding is illegal and should throw an Exception or the target property can handle it and must do so without public shouting. Second applies here, so remove or log at a finer level and/or document in the api

            msladecek Martin Sládeček
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: