From e9c63fe156f4f06b9f03472e222476baf21df733 Mon Sep 17 00:00:00 2001 From: Arnaud Simon Date: Mon, 17 Dec 2007 09:04:23 +0000 Subject: Qpid-708: changed setCleintID to throw the expected exception git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@604799 13f79535-47bb-0310-9956-ffa450edef68 --- java/client/src/main/java/org/apache/qpid/client/AMQConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java b/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java index af486f9dca..f1318f0f48 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQConnection.java @@ -580,7 +580,7 @@ public class AMQConnection extends Closeable implements Connection, QueueConnect // 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 -- cgit v1.2.1