Groovy
  1. Groovy
  2. GROOVY-4359

Generic types are incorrectly shared/resolved within the module

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8-beta-1
    • Fix Version/s: 2.4.0-beta-4
    • Component/s: class generator
    • Labels:
      None

      Description

      The following code should not compile, as class A is defined as a generic class and not class B, but type variables' resolution is spilling over from A to other non-related classes in the same module.

      Test.groovy
      class A<T>{}
      
      class B {
          T f
      }
      

      However, the following should continue to work

      class A<T>{
          class B {
              T f
          }
      }
      

        Activity

        Roshan Dawrani created issue -
        Pascal Schumacher made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 2.4.0-beta-4 [ 20612 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733300 ] Default workflow, editable Closed status [ 12740858 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971193 ] Default workflow, editable Closed status [ 12978960 ]

          People

          • Assignee:
            Jochen Theodorou
            Reporter:
            Roshan Dawrani
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development