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

StaticTypeCheckingSupport#evaluateExpression can provide lightweight evaluation for simple expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-rc-1, 3.0.14
    • None
    • None

    Description

      StaticTypeCheckingSupport#evaluateExpression is used to evaluate annotation attribute expressions when processing AST transforms or static type checking. When asked to eval a simple string constant, it could return a value directly. This could save on cloning a compiler configuration and spinning up class parse, compile and execute.

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m