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

AstBuilder fromSpec creates extra generics info in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7-beta-1
    • 1.7-beta-2
    • ast builder
    • None
    • all

    Description

      Side effect of JIRA-3731

      Generics are now being added to ClassNode objects created using the ClassHelper object. The AstBuilder is implemented using this ClassHelper. The result is that ClassNodes created through the Specification have generics information added to them by default, which they should not. The fix is to use ClassHelper#makeWithoutCaching(Class, false) as an API rather than ClassHelper#make(Class).

      The existing Spec test should be updated to reveal where we are using this API. Then the spec can be changed to use it. Should be simple.

      Attachments

        Activity

          People

            hamletdrc Hamlet D'Arcy
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified