Improve diagnostics when generic method and generic class use same name for type parameter

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Rejected
    • Priority: P5
    • None
    • Affects Version/s: 5.0
    • Component/s: tools
    • generic
    • generic

      Please, look at the following funny example:

      ExportBundler.java:1170: incompatible types
      found : java.util.Iterator<java.util.List<T>>
      required: java.util.Iterator<java.util.List<T>>
              for (Iterator<List<T>> lItr = lists.iterator(); lItr.hasNext();)

      Such error message is given if a generic method appears inside a generic
      class and both the method and the class use the same name for the type parameter.
      I believe that a new user will be really confused in this case

            Assignee:
            Unassigned
            Reporter:
            Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: