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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Future Project
    • Icon: P4 P4
    • None
    • 1.1.3
    • specification
    • x86
    • windows_nt



      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.
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: