United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7193169 The code example in javadoc of Component.java misses 'implements' keyword
JDK-7193169 : The code example in javadoc of Component.java misses 'implements' keyword

Details
Type:
Bug
Submit Date:
2012-08-22
Status:
Resolved
Updated Date:
2013-07-09
Project Name:
JDK
Resolved Date:
2012-09-05
Component:
client-libs
OS:
linux
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

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.

                                    

Comments
EVALUATION

http://mail.openjdk.java.net/pipermail/awt-dev/2012-August/003326.html
                                     
2012-08-23



Hardware and Software, Engineered to Work Together