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/07/11 22:20:00 UTC

[jira] [Updated] (GROOVY-3539) Some uses of SyntaxErrorMessage are semantic error exceptions not syntax exceptions

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

Eric Milles updated GROOVY-3539:
--------------------------------
    Labels:   (was: contrib)

> Some uses of SyntaxErrorMessage are semantic error exceptions not syntax exceptions
> -----------------------------------------------------------------------------------
>
>                 Key: GROOVY-3539
>                 URL: https://issues.apache.org/jira/browse/GROOVY-3539
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Compiler
>    Affects Versions: 1.6.3
>            Reporter: Andrew Eisenberg
>            Priority: Minor
>
> This program causes the compiler to throw a syntax error.  However it should be a semantic error.
> {code}
> public class B {
>    public void Test() {
>       new NotExist()   
>    }
> }
> {code}
> We could review usage of {{SyntaxErrorMessage}} and throw a different error instead where appropriate.
> They are converted into compilation exceptions later so not really visible to users of the language but relevant for IDEs.



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