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

Stack overflow in javac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • 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; }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: