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

Compilation spec needed: should state if private should imply final for a method

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Future Project
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: specification
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: tb29552 Date: 08/12/97


      Reported by:
      company - Sybase Waterloo , email - ###@###.###

      class bug52 {
          private String foo() {
              return null;
          }
      };

      The classfile generated for this source code
      doesn't have the final attribute set for
      method bug52.foo. This is incorrect according
      to the JLS 8.4.3.3 where it states that a
      private method is implicitly final.
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abuckley Alex Buckley
              Reporter:
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: