Griffon
  1. Griffon
  2. GRIFFON-488

Groovy bug encountered ClassNode#getTypeClass in controller with public methods

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.9.5-rc2
    • Fix Version/s: 0.9.5
    • Component/s: cli
    • Labels:
      None
    • Number of attachments :
      0

      Description

      If a controller is defined as follows

      
      package foo
      class FooController {
          void boom1(List<Foo> foos) { println foos }
          void boom2(Foo foo) { println foo }
      }
      

      making use of a class foo.Foo which is also compiled in the same compilation step produces

      Compilation error: BUG! exception in phase 'canonicalization' in source unit '/private/tmp/foo/griffon-app/controllers/foo/FooController.groovy' ClassNode#getTypeClass for foo.Foo is called before the type class is set 
      

        Activity

        Show
        Andres Almiray added a comment - Fixed with https://github.com/griffon/griffon/commit/8a7744161fbf8f672e8afb509c221c61bf32c33e

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: