[
https://issues.apache.org/jira/browse/GROOVY-3539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King updated GROOVY-3539:
------------------------------
Description:
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.
was:
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}
> 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
> Labels: contrib
>
> 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
(v7.6.3#76005)