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

MissingPropertyException truncates nested class name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.9
    • 4.0.10
    • None
    • None

    Description

      When a nested class is the target of an invalid property expression, the resulting error message has the wrong class name:

      class Outer {
        static class Inner {}
      }
      
      new Outer.Inner().missing
      

      results in

      groovy.lang.MissingPropertyException: No such property: missing for class: com.example.Outer
      

      Attachments

        Activity

          People

            emilles Eric Milles
            chrylis Christopher Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: