lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1082613 - /incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs
Date Thu, 17 Mar 2011 17:57:37 GMT
Author: digy
Date: Thu Mar 17 17:57:37 2011
New Revision: 1082613

URL: http://svn.apache.org/viewvc?rev=1082613&view=rev
Log:
[LUCENENET-399] againg "override" + type cast exceptions in TestCrash

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Store/MockRAMDirectory.cs?rev=1082613&r1=1082612&r2=1082613&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Store/MockRAMDirectory.cs Thu Mar 17 17:57:37 2011
@@ -98,7 +98,7 @@ namespace Lucene.Net.Store
             preventDoubleWrite = value;
         }
 
-        public void Sync(String name)
+        public override void Sync(String name)
         {
             lock (this)
             {
@@ -124,7 +124,8 @@ namespace Lucene.Net.Store
                 int count = 0;
                 while (it.MoveNext())
                 {
-                    String name = (String)it.Current;
+
+                    string name = (string)((System.Collections.DictionaryEntry)it.Current).Key;
                     RAMFile file = (RAMFile)fileMap[name];
                     if (count % 3 == 0)
                     {



Mime
View raw message