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

Missing support for non-static generic function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.6
    • None
    • parser-antlr2

    Description

      This will compile:

      static <T> T getBean(final Class<T> clazz) {
      return null
      }

      but this will not:

      <T> T getBean(final Class<T> clazz) {
      return null
      }

      Both forms are legal Java constructs.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            krasmussen Kirk Rasmussen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: