Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
If I 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:
@SomeAnnotation(SomeJavaClass)
class Foo {}
generated stub:
@SomeAnnotation(SomeJavaClass) //should be @SomeAnnotation(SomeJavaClass.class) public class Foo {}
Attachments
Issue Links
- is duplicated by
-
GROOVY-10571 Stub generator misses sibling classes in annotation
- Closed
- relates to
-
GROOVY-10607 Groovy 4 fails to generate imports during joint compilation
- Closed
-
GROOVY-10996 Compilation issue in Groovy 4
- Closed