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

Implementation of the hasProperties() method of the Node class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • None
    • Windows 32-bit

      The following snippet of code prints:
      false
      true

      which seems to be a bug.


      TextField nameField = new TextField();
      System.out.println(nameField.hasProperties());
       
      ObservableMap<Object, Object> props = nameField.getProperties();
       
      System.out.println(nameField.hasProperties());



      The implementation of the hasProperties() method in the Node class returns true, if the ObservableMap object for storing properties has been created. That is not what is expected from this method. I think, this method should also check if the ObservableMap has any entries.

            msladecek Martin Sládeček
            ksharanjfx Kishori Sharan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: