commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r158647 - jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/pop3/POP3.java
Date Tue, 22 Mar 2005 19:42:24 GMT
Author: dfs
Date: Tue Mar 22 11:42:24 2005
New Revision: 158647

URL: http://svn.apache.org/viewcvs?view=rev&rev=158647
Log:
Fixed problem reported by Dave Cee <sammy_c at lineone.net> as bug id 34133.
Notification to ProtocolCommandListener was being performed prior to
storing reply, producing an empty reply string.

Modified:
    jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/pop3/POP3.java

Modified: jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/pop3/POP3.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/pop3/POP3.java?view=diff&r1=158646&r2=158647
==============================================================================
--- jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/pop3/POP3.java (original)
+++ jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/pop3/POP3.java Tue Mar
22 11:42:24 2005
@@ -124,11 +124,11 @@
             MalformedServerReplyException(
                 "Received invalid POP3 protocol response from server.");
 
-        if (_commandSupport_.getListenerCount() > 0)
-            _commandSupport_.fireReplyReceived(_replyCode, getReplyString());
-
         _replyLines.addElement(line);
         _lastReplyLine = line;
+
+        if (_commandSupport_.getListenerCount() > 0)
+            _commandSupport_.fireReplyReceived(_replyCode, getReplyString());
     }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message