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

ContainerListener Documentation may be incorrect

XMLWordPrintable

    • b103
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :

      Microsoft Windows XP [Version 5.1.2600] w/SP2

      A DESCRIPTION OF THE PROBLEM :
      The second paragraph of the description of the ContainerListener interface may have an incorrect word (Fix in parentheses ()):

      "Container events are provided for notification purposes ONLY; The AWT will automatically handle add and remove operations internally so the program works properly regardless of whether the program registers a ComponentListener (should be be ContainerListener) or not. "

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Read the documentation for version 6 at http://java.sun.com/javase/6/docs/api/java/awt/event/ContainerListener.html

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected to read ContainerListener
      ACTUAL -
      Read ComponentListener.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            art Artem Ananiev (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: