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

too many final methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.4
    • core-libs
    • x86
    • windows_95



      Name: rm29839 Date: 10/29/97


      I've found so much final methods when I tried to
      enhance some of the basic classes, e.g:

      I wanted to create a "SortedVector" from the
      class "Vector" which should be transparent to
      the user. But because the methods of Vector are
      all final I have to define special methods for
      this. The user now has to decide in advance whether
      he wants a sorted or a non sorted vector.

      Are these final methods really necessary ?
      What can happen if you make them nonfinal ?

      Best Regards
      Hardy Haardt
      (Review ID: 14627)
      ======================================================================

            jjb Josh Bloch
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: