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

4.4: Fix type variable example which assumes public interface members

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7
    • specification

      A DESCRIPTION OF THE PROBLEM :
      In Section 4.4, the documentation states that "<...> The members of an interface are always public, and therefore always inherited (unless overridden).".

      However, later in the text it is stated that "A method in the body of an interface may be declared public or private (§6.6)."


      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/specs/jls/se9/html/jls-4.html#jls-4.4

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: