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

[regression] new @BeanProperty annotation does not contain "constrained" element

XMLWordPrintable

      Probably not an issue, but just in case...

      For some PropertyDescriptor d we have the following <d.setXXX()> <-> <@BeanProperty element> relations:

      d.setBound(true) <-> @BeanProperty(bound = true)
      d.setExpert(true) <-> @BeanProperty(expert = true)
      d.setHidden(true) <-> @BeanProperty(hidden = true)
      d.setPreferred(true) <-> @BeanProperty(preferred = true)
      d.setValue("required", true) <-> @BeanProperty(required = true) - does not work! See JDK-8131939
      d.setValue("visualUpdate", true) <-> @BeanProperty(visualUpdate = true)
      d.setShortDescription("AAA") <-> @BeanProperty(description = "AAA")
      d.setValue("enumerationValues", new Object[]{...}) <-> @BeanProperty(enumerationValues = {...})

      but:

      d.setConstrained(true) <-> ???

      so, is that what expected? why "constrained" property is less important than (e.g.) "expert" or "bound"?

            serb Sergey Bylokhov
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: