You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ar...@apache.org on 2007/12/17 10:04:24 UTC

svn commit: r604799 - /incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java

Author: arnaudsimon
Date: Mon Dec 17 01:04:23 2007
New Revision: 604799

URL: http://svn.apache.org/viewvc?rev=604799&view=rev
Log:
Qpid-708: changed setCleintID to throw the expected exception

Modified:
    incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java

Modified: incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java?rev=604799&r1=604798&r2=604799&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java (original)
+++ incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java Mon Dec 17 01:04:23 2007
@@ -580,7 +580,7 @@
         // in AMQP it is not possible to change the client ID. If one is not specified
         // upon connection construction, an id is generated automatically. Therefore
         // we can always throw an exception.
-        // throw new IllegalStateException("Client name cannot be changed after being set");
+        throw new IllegalStateException("Client name cannot be changed after being set");
     }
 
     public ConnectionMetaData getMetaData() throws JMSException