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

Value record missing for assert on field expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-rc-3
    • None
    • None

    Description

      Consider the following:

      class C {
        private Object field
        void test() {
          assert this.@field != null
        }
      }
      new C().test()
      

      When executed, the assert is displayed as follows (value for field expression is missing):

      assert this.@field != null
                         |
                         false
      

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: