groovy
  1. groovy
  2. GROOVY-3146

Bindable transformation applied to a subclass of JComponent ( possibly others ) causes an IllegalAccessError

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6-beta-2
    • Fix Version/s: 1.6-rc-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      openSUSE 11.0 Groovy Version: 1.6-beta-2 Sun JVM: 1.6.0_07
    • Number of attachments :
      1

      Description

      If you apply the @Bindable transformation to a subclass where the super class has implemented bindable support ( like JComponent ), the @Bindable transformation will find the private PropertyChangeSupport field in the super class and attempt to use it in its generated code. This worked in 1.6-beta-1, but in beta-2 throws an IllegalAccessError.

        Activity

        Hide
        Chris Reeves added a comment -

        My attempt at a groovy test case for this issue.

        Show
        Chris Reeves added a comment - My attempt at a groovy test case for this issue.
        Hide
        Danno Ferrin added a comment -

        Change addresses all property change support providers. If it cannot work, it should now fail at compile time. But adding bindable to a JComponent sub-class works (test cases exist for that case)

        Show
        Danno Ferrin added a comment - Change addresses all property change support providers. If it cannot work, it should now fail at compile time. But adding bindable to a JComponent sub-class works (test cases exist for that case)

          People

          • Assignee:
            Danno Ferrin
            Reporter:
            Chris Reeves
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: