From ccaba8df37149f7e744ebf9ff6a1dc350a32942b Mon Sep 17 00:00:00 2001 From: jestin Date: Thu, 23 Dec 2004 16:12:25 +0000 Subject: preparing the 1.2.7 release --- src/SelfIvyClient.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/SelfIvyClient.java') diff --git a/src/SelfIvyClient.java b/src/SelfIvyClient.java index a96e0d2..acd2d66 100644 --- a/src/SelfIvyClient.java +++ b/src/SelfIvyClient.java @@ -6,6 +6,8 @@ * @since 1.2.4 * * CHANGELOG: + * 1.2.7: + * - fixes a bug on unbindMsg(String) ( closes Matthieu's burreport ) * 1.2.6: * - jakarta regexp are not threadsafe, adding extra synch blocks * 1.2.5: @@ -63,10 +65,12 @@ class SelfIvyClient extends IvyClient { throw new IvyException("client wants to remove an unexistant regexp "+id); } + // unbinds to the first regexp synchronized protected boolean unBindMsg(String re) { + if (!regexpsText.contains(re)) return false; for (Enumeration e=regexpsText.keys();e.hasMoreElements();) { Integer k = (Integer)e.nextElement(); - if ( ((String)regexps.get(k)).compareTo(re) == 0) { + if ( ((String)regexpsText.get(k)).compareTo(re) == 0) { try { bus.unBindMsg(k.intValue()); } catch (IvyException ie) { -- cgit v1.1