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

javac crashes with stack overflow when method called recursively from nested generic call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 8, 8-repo-lambda
    • tools
    • b96
    • Verified

      This program causes a stack overflow exception:

      class LazySeq<E> { }

      class Test {
          <C> LazySeq<C> cons(LazySeq<C> tailFun) { return null; }

          <T extends Comparable<T>> LazySeq<T> mergeSorted(LazySeq<T> a) {
              return cons(mergeSorted(a));
          }
      }

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: