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

Use of generics causes "The class p.A refers to the class p.A and uses 1 parameters, but the referred class takes no parameters"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.6.3
    • 1.6.5
    • None
    • None
    • Windows, JDK 1.6.0

    Description

      If I create a class
      p.A<T>
      and a class
      p.B extends p.A<Long>
      I get an error "The class p.A refers to the class p.A and uses 1 parameters, but the referred class takes no parameters", if I instantiate a class p.B

      The error comes, if I put class A and B in different files.
      If I put them in one file, it works fine

      see attached test cases in testcase.zip

      • folder ok contains one script show.groovy which works fine
      • folder notok contains one script which defines class p.A and one script which defines class B and uses it

      Attachments

        1. testcase.zip
          1.0 kB
          Uwe Kirsch

        Activity

          People

            Unassigned Unassigned
            uwe.kirsch Uwe Kirsch
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: