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

Extraneous Character in "Type Inference for Generic Instance Creation" code ex

XMLWordPrintable

    • b146
    • x86
    • windows_7
    • Verified

      A DESCRIPTION OF THE PROBLEM :
        Towards the bottom of the page, the last example code statement -- illustrating a statement that explicitly specifies the type String for the formal type parameter, T -- there is an extraneous backquote in the String type declaration.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      MyClass<Integer> myObject = new <String> MyClass<>("");
      ACTUAL -
      MyClass<Integer> myObject = new <String`> MyClass<>("");

      URL OF FAULTY DOCUMENTATION :
      http://download.java.net/jdk7/docs/technotes/guides/language/type-inference-generic-instance-creation.html
      Wrong syntax in code sample for generics.
      The fixes will affect the documentation only and not the bits.

      Checked with the integrator for the build forest and the l10n team. They have indicated that this is ok.

            rgallard Raymond Gallardo
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: