diff options
author | jestin | 2004-12-23 16:12:25 +0000 |
---|---|---|
committer | jestin | 2004-12-23 16:12:25 +0000 |
commit | ccaba8df37149f7e744ebf9ff6a1dc350a32942b (patch) | |
tree | 04ecb2aeab20dec5e3ed13419e4dc50390f2a316 /src/SelfIvyClient.java | |
parent | 031f955efd5fa20041f7344041f290b15b20c019 (diff) | |
download | ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.zip ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.tar.gz ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.tar.bz2 ivy-java-ccaba8df37149f7e744ebf9ff6a1dc350a32942b.tar.xz |
preparing the 1.2.7 release
Diffstat (limited to 'src/SelfIvyClient.java')
-rw-r--r-- | src/SelfIvyClient.java | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |