[
https://issues.apache.org/jira/browse/NET-726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved NET-726.
---------------------------------
Fix Version/s: 3.10.1
Resolution: Fixed
> Add protected getters to FTPSClient
> -----------------------------------
>
> Key: NET-726
> URL: https://issues.apache.org/jira/browse/NET-726
> Project: Commons Net
> Issue Type: Task
> Reporter: PJ Fanning
> Priority: Major
> Fix For: 3.10.1
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)