Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3148

Add javabean property and user generated setter support to @Bindable AST transformation.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6-beta-1
    • 1.6-rc-1, 1.7-beta-1
    • None
    • None
    • openSuse 11.0 groovy 1.6-beta-2 Sun JVM: 1.6.0_07
    • Patch

    Description

      The current version, as of revision 13997, of the @Bindable AST transformation does not support user generated setters or javabeans properties. A javabean property being defined here as a user generated getter and user generated setter with no backing field or at least no groovy property definition.

      The attached patch was written against revision 13997 of groovy/beans/BindableASTTransformation.java from SVN. If this is an acceptible solution, I would be glad to generate a patch for the VetoableASTTransformation.

      Attachments

        1. BindableASTTransformation.java.patch
          4 kB
        2. patch.zip
          12 kB
        3. patch2.zip
          36 kB

        Activity

          People

            shemnon Daniel Ferrin
            evschris Chris Reeves
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: