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

Type checker throws No such property: value for class: java.lang.Object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1
    • Static Type Checker
    • None

    Description

      In the following example:

      class MyUtility {
          protected String value
      
          @groovy.transform.TypeChecked
          void foo() {
              this.@value = 'new value'
          }
      }
      

      The compiler doesn't find the attribute. Removing "@" works.

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: