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

BooleanProperty: longish info message bubbles up in application code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: