Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8184

Class constant withouts .class in annotation value resolves as VariableExpression

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              emilles Eric Milles
              DameNoSupaplex Pavel Novichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: