[TEST_BUG] @BeanProperty: unwanted "declaringClass" descriptor when annotating an enum

XMLWordPrintable

    • b124

      Please run the attached test code. The output will be (JDK9 b115 + Win 7):

      === testing E ===

      declaringClass
      isBound = false
      isExpert = false
      isHidden = false
      isPreferred = false
      required = false
      visualUpdate = false
      null vals

      ENUM
      isBound = false
      isExpert = true
      isHidden = false
      isPreferred = true
      required = false
      visualUpdate = true
      RIGHT 4 javax.swing.SwingConstants.RIGHT

      === testing TWO ===

      declaringClass
      isBound = false
      isExpert = false
      isHidden = false
      isPreferred = false
      required = false
      visualUpdate = false
      null vals

      TWO
      isBound = false
      isExpert = true
      isHidden = false
      isPreferred = true
      required = false
      visualUpdate = true
      LEFT 2 javax.swing.SwingConstants.LEFT

      === testing Empty ===

      declaringClass
      isBound = false
      isExpert = false
      isHidden = false
      isPreferred = false
      required = false
      visualUpdate = false
      null vals


      === testing Other ===

      Other
      isBound = false
      isExpert = false
      isHidden = false
      isPreferred = false
      required = true
      visualUpdate = true
      CONSTANT 100 some.test.CONSTANT


      Please note that for "Other" case (where we do not use the new annotation) there is no parasitic "declaringClass" descriptor

            Assignee:
            Sergey Bylokhov
            Reporter:
            Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: