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

compile error: break a method definition into 2 lines

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: parser
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: