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

The code example in javadoc of Component.java misses 'implements' keyword

    XMLWordPrintable

Details

    • b55
    • x86
    • linux

    Backports

      Description

        FULL PRODUCT VERSION :
        java version "1.7.0_01"
        Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
        Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        It is in api doc, os independent.

        A DESCRIPTION OF THE PROBLEM :
        When reading the javadoc comments in Component.java and I found this
        piece of code example:
        "
            class MyApp java.io.Serializable
            {
                 BigObjectThatShouldNotBeSerializedWithAButton bigOne;
         "

            It seems the "implements" keyword is missing. It should be
        “ class MyApp implements java.io.Serializable ”

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        It can be seen in http://docs.oracle.com/javase/7/docs/api/java/awt/Component.html

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        class MyApp implements java.io.Serializable
        ACTUAL -
        class MyApp java.io.Serializable

        REPRODUCIBILITY :
        This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

                anthony Anthony Petrov (Inactive)
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: