commons-issues mailing list archives

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

                 Key: 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()];
 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.

View raw message