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

@Bindable and final don't work together

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6
    • 1.6.1, 1.7-beta-1
    • None
    • None
    • OS X,

    Description

      I have a class annotated with @Bindable and a field declared final. For example:

      @Bindable
      class Foo {
      final int bar
      int baz
      }

      When I do this:
      new Foo().bar = 10

      I get an appropriate Unmodifiable exception

      When I do this:
      new Foo().setBar(10)

      I don't get the exception. From what I understand, there shouldn't even be a setBar when bar is final.

      Attachments

        Activity

          People

            shemnon Daniel Ferrin
            zoosnack zak jacobson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: