You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2010/06/23 16:31:08 UTC

svn commit: r957216 - /lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java

Author: shaie
Date: Wed Jun 23 14:31:08 2010
New Revision: 957216

URL: http://svn.apache.org/viewvc?rev=957216&view=rev
Log:
Fix silly bug in the regex used to normalize the MXBean name (used a..z instead of a-z - which removed too many characters)

Modified:
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java?rev=957216&r1=957215&r2=957216&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/store/NativeFSLockFactory.java Wed Jun 23 14:31:08 2010
@@ -85,7 +85,7 @@ public class NativeFSLockFactory extends
     // Also, remove any non-alphanumeric characters, so that the lock file will
     // be created for sure on all systems.
     String randomLockName = "lucene-"
-        + ManagementFactory.getRuntimeMXBean().getName().replaceAll("[^a..zA..Z0..9]+","") + "-"
+        + ManagementFactory.getRuntimeMXBean().getName().replaceAll("[^a-zA-Z0-9]+","") + "-"
         + Long.toString(new Random().nextInt(), Character.MAX_RADIX)
         + "-test.lock";