Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-726

Add protected getters to FTPSClient

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.11.0
    • None
    • None

    Description

      As part of https://github.com/apache/incubator-pekko-connectors/pull/171, I am trying to subclass FTPSClient to revert the changes in NET-642 (see NET-718).

      While the method that I need to change is protected, the method needs access to private fields.

      The line I want to revert in the Apache Pekko code is https://github.com/apache/commons-net/pull/90/files#diff-b4292a5bd3e39f502d24bce1eb934384a951a120080c870cdc68c0585a78c6e9R269

      That openDataConnection method uses a number of private final fields. Even if these fields were provided with protected getter methods, I would be able to access the values in my subclass.

      For now, I've done a full copy of FTPSClient and adjusted that - but that is a lot of code to keep forked.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fanningpj PJ Fanning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: