Stack overflow in javac

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: tools
    • None
    • generic
    • generic

      This program causes a stack overflow in javac.

      final class Wrapper<T extends Comparable<? extends T>> {
         private final T theObject;
         public Wrapper(T t) { theObject = t; }
         public <U extends T> Wrapper(Wrapper<U> w) { theObject = w.theObject;}
         public T getWrapper() { return theObject; }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: