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

compile error: break a method definition into 2 lines

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • parser
    • None
    • windows xp, groovy 1.5.4/eclipse 3.3.1/jdk 6.x.x (latest 2008/2)

    Description

      Break method definition into 2 lines and may have a compile error, which does not when the definition is in one line!
      (used with Java generics, but happends also without <T>)

      Like: def public static ReturnType
      getxxxx()

      { ... }

      But it compiles when:

      def public static
      ReturnType getxxx()
      {
      ...
      }

      Ok: def public static ReturnType getxxx()
      {
      ...
      }

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            tkassila Tuomas Kassila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: