commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Wunderlich (JIRA)" <j...@apache.org>
Subject [jira] Updated: (NET-257) FTP.getReplyStrings() returns array of null Strings
Date Wed, 18 Feb 2009 06:33:02 GMT

     [ https://issues.apache.org/jira/browse/NET-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Wunderlich updated NET-257:
-------------------------------

    Description: 
The 2.0 implementation of FTP.getReplyStrings() returns an array of null Strings instead of
the actual reply text. Here is the current method:

{{String[] lines;}}
{{lines = new String[_replyLines.size()];}}
{{_replyLines.addAll(Arrays.asList(lines));}}
{{return lines;}}

I believe the correction is to replace the above code with something like:

{{return _replyLines.toArray(new String[0]);}}


  was:
The 2.0 implementation of FTP.getReplyStrings() returns an array of null Strings instead of
the actual reply text. Here is the current method:

{{String[] lines;}}
{{ lines = new String[_replyLines.size()];}}
 {{_replyLines.addAll(Arrays.asList(lines));}}
 {{return lines;}}

I believe the correction is to replace the above code with something like:

{{return _replyLines.toArray(new String[0]);}}



> FTP.getReplyStrings() returns array of null Strings
> ---------------------------------------------------
>
>                 Key: NET-257
>                 URL: https://issues.apache.org/jira/browse/NET-257
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Win XP, JRE 1.5
>            Reporter: Rob Wunderlich
>
> The 2.0 implementation of FTP.getReplyStrings() returns an array of null Strings instead
of the actual reply text. Here is the current method:
> {{String[] lines;}}
> {{lines = new String[_replyLines.size()];}}
> {{_replyLines.addAll(Arrays.asList(lines));}}
> {{return lines;}}
> I believe the correction is to replace the above code with something like:
> {{return _replyLines.toArray(new String[0]);}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message