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

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: Fixed
    • 1.6.4
    • 1.6.5, 1.7-beta-2
    • None
    • None
    • Windows XP SP3, JDK 1.6.0

    Description

      Description « Hide
      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

            roshandawrani Roshan Dawrani
            uwe.kirsch Uwe Kirsch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: