2 Replies Latest reply: Dec 7, 2012 11:17 AM by Kishori Sharan RSS

    Implementation of the hasProperties() method of the Node class

    Kishori Sharan
      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 properties.

      Can someone confirm that it is a bug?

      Thanks
      Kishori