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

Typo in Erasure of Generic Types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: