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

ClassNode isRecord and isSealed not useful before AST transformation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-rc-2
    • 4.0.0
    • None
    • None

    Description

      The new to Groovy 4 methods ClassNode#isRecord and ClassNode#isSealed do not work for a node that has not yet been processed by the record/sealed transform or in some cases ResolveVisitor. And they do not work for a node that is a reference to a record or sealed type.

      For these reasons, I request that the methods be moved to ClassNodeUtils with some extra notes or made private within classgen somewhere.

      Attachments

        Activity

          People

            paulk Paul King
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: