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

@BeanProperty: invalid bean info in case of overloaded setter (varargs) - unstable behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3 P3
    • 9
    • 9
    • client-libs

      Please use the following test draft to reproduce:
      http://cr.openjdk.java.net/~avstepan/8132138/webrev.01/
      - replace "cases" array with "cases[] = {Bean.class}"

      The erratic "bean" is:

          public static class Bean {

              private int x;

              @BeanProperty(
                  description = DESCRIPTION,
                  bound = BOUND,
                  expert = EXPERT,
                  hidden = HIDDEN,
                  preferred = PREFERRED,
                  required = REQUIRED,
                  visualUpdate = UPDATE,
                  enumerationValues = {V_NAME})
              public void setX(int v) { x = v; }

              public void setX(int ... dummy) { }

              public void addPropertyChangeListener(PropertyChangeListener l) {}
              public void removePropertyChangeListener(PropertyChangeListener l) {}
          }

      Sometimes the test passes, sometimes fails (JDK9 b114 + Ubuntu 14.04 Linux):
      Bean (setter + overloading methods):
      checking info...
      invalid description: x, expected: TEST
      invalid isHidden: false, expected: true
      invalid required: false, expected: true
      null enumerationValues
      NOK

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

              Created:
              Updated:
              Resolved: