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

Interface methods are marked public which is always implied & discouraged by JLS

    Details

    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      x86
    • OS:
      windows_2000

      Description



      Name: nt126004 Date: 05/09/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      Javadoc marks interface methods with the public access
      modifiers, which is always implied for interfaces. The
      JLS "strongly discourages" this style.

      see:

      http://java.sun.com/docs/books/jls/second_edition/html/interfaces.doc.html#78651

      "Every method declaration in the body of an interface is implicitly public.

      It is permitted, but strongly discouraged as a matter of style, to redundantly specify the public modifier for interface methods."


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Look at the JavaDoc for java.util.List for example

      This bug can be reproduced always.
      (Review ID: 146008)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              jhosunw Jamie Ho (Inactive)
              Reporter:
              nthompsosunw Nathanael Thompson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: