You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2023/02/23 00:26:00 UTC

[jira] [Resolved] (GROOVY-10935) MissingPropertyException truncates nested class name

     [ https://issues.apache.org/jira/browse/GROOVY-10935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles resolved GROOVY-10935.
----------------------------------
    Resolution: Fixed

https://github.com/apache/groovy/commit/95103625d0162b3018513e2664dd51cefa3eeaaa

> MissingPropertyException truncates nested class name
> ----------------------------------------------------
>
>                 Key: GROOVY-10935
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10935
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 4.0.9
>            Reporter: Christopher Smith
>            Assignee: Eric Milles
>            Priority: Minor
>
> When a nested class is the target of an invalid property expression, the resulting error message has the wrong class name:
> {code:groovy}
> class Outer {
>   static class Inner {}
> }
> new Outer.Inner().missing
> {code}
> results in
> {code}
> groovy.lang.MissingPropertyException: No such property: missing for class: com.example.Outer
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)