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

Typo in Erasure of Generic Types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • docs
    • None

      In http://docs.oracle.com/javase/tutorial/java/generics/genTypes.html

      public class Node<T> {

          private T data;
          private Node<T> next;

          public Node(T data, Node<T> next) }
              this.data = data;
              this.next = next;
          }

          public T getData() { return data; }
          // ...
      }

      In the definition of the Node constructor, the opening brace is reversed.

            Unassigned Unassigned
            rgallard Raymond Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: