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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: Static Type Checker
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: