JDK-7193169 : The code example in javadoc of Component.java misses 'implements' keyword
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-08-22
  • Updated: 2017-05-19
  • Resolved: 2012-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b55Fixed
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
23-08-2012