fields are private rather than protected

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.8
    • Component/s: core-libs
    • generic
    • generic



      Name: skT88420 Date: 07/07/99


      The fields of many of the standard classes are private rather than
      protected, which inhibits the ability to easily derive new objects.
      For instance, I would like to create a Logfile class that derives from
      PrintWriter, but automatically rotates the log file when (for example)
      a certain number of lines are written or a certain amount of time has passed.
      If the fields were protected, this is a simple matter of modifying
      PrintWriter.newLine() and touching PrintWriter.out as necessary. However,
      now I have to duplicate the PrintWriter for no good reason.
      (Review ID: 85299)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: