You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pavel Novichenko (JIRA)" <ji...@apache.org> on 2017/05/09 11:39:04 UTC

[jira] [Created] (GROOVY-8184) Class constant withouts .class in annotation value resolves as VariableExpression

Pavel Novichenko created GROOVY-8184:
----------------------------------------

             Summary: Class constant withouts .class in annotation value resolves as VariableExpression
                 Key: GROOVY-8184
                 URL: https://issues.apache.org/jira/browse/GROOVY-8184
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 4.x
            Reporter: Pavel Novichenko


If write class name of java class in same package without .class inside annotation definition, expresson not resolves as ClassExpresson, but VariableExpression. In stub generation VariableExpression represents as only name of class whithout .class and leading to incorrect java file.
Example:
groovy:
{code}
@SomeAnnotation(SomeJavaClass)
class Foo {}
{code}
generated stub:
{code}
@SomeAnnotation(SomeJavaClass) //should be @SomeAnnotation(SomeJavaClass.class)
public class Foo {}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)