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

A missing property that doesn't cause MissingPropertyException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.6, 2.0.5, 2.4.5
    • None
    • parser
    • None

    Description

      The following script works but it should not because v is undefined.
      def v = v? v : (0==1); 0

      But if we replace 0 by (1-1), or (0==1) by (false), we have the expected issue: MissingPropertyException: No such property: v...

      Tested with Groovy 1.8.6 and 2.0.5

      Attachments

        Activity

          People

            Unassigned Unassigned
            mcoolive Cyril Martin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: