Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8044804

Repeated use of TypeVariable name crashes javac

XMLWordPrintable

      The following program crashes javac:

      --- 8< ---
      public class Test <T1, T1 extends MyObject, T2> {}

      class MyObject {}
      ----------

      The problem (IIRC) is the error message accesses the tsym.type of T1 or MyObject before it is attributed.

            jfranck Joel Borggrén-Franck (Inactive)
            jfranck Joel Borggrén-Franck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: