Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-6458157

Non-final method from final class should be compatible with final method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: st1.5
    • Fix Version/s: st1.4
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      fcs
    • CPU:
      x86
    • OS:
      generic
    • Verification:
      Verified

      Description

      A private method and all methods declared immediately within a final class (§8.1.1.2) behave as if they are final, since it is impossible to override them.

      Sigtest doesn't check such methods as equals.

      public final class A {
       public final void foo() {}
      }
      equals to:
      public final class A {
       public void foo() {}
      }

      Thanks to Paul Hendley :)

        Attachments

          Activity

            People

            Assignee:
            rmakarch Roman Makarchuk (Inactive)
            Reporter:
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: