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

avoid getTypeClass() use in DelegateASTTransformation

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.4
    • 1.8.5, 2.0-beta-2
    • None
    • None

    Description

      Recent changes in DelegateASTTransformation have introduced a dependence on ClassNode.getTypeClass(). As mentioned in other Jiras, the tools don't work well when getTypeClass() is used as we treat ClassNode as a proper type abstraction, we don't always have a real class file behind it (so getTypeClass() will usually return null).

      At line 220, instead of:
      return ClassHelper.makeWithoutCaching(type.getTypeClass(), false);
      can we do something like:
      return type.getComponentType().getPlainNodeReference().makeArray();

      Attachments

        Activity

          People

            melix Cédric Champeau
            aclement Andy Clement
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: