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

AstBuilder fromSpec creates extra generics info in some cases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 1.7-beta-2
    • Component/s: ast builder
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              hamletdrc Hamlet D'Arcy
              Reporter:
              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