From 98e2f78189270e7f39d310c3315ca2e357cf7e43 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sat, 30 May 2009 20:47:11 +0000 Subject: [PATCH] LUCENE-1658: Fix ClassCastException during cloneing SimpleFSIndexInput git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@780320 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/store/SimpleFSDirectory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/store/SimpleFSDirectory.java b/src/java/org/apache/lucene/store/SimpleFSDirectory.java index 11bdcb79cc2..16a36ea6ae3 100644 --- a/src/java/org/apache/lucene/store/SimpleFSDirectory.java +++ b/src/java/org/apache/lucene/store/SimpleFSDirectory.java @@ -132,7 +132,7 @@ public class SimpleFSDirectory extends FSDirectory { } public Object clone() { - FSIndexInput clone = (FSIndexInput)super.clone(); + SimpleFSIndexInput clone = (SimpleFSIndexInput)super.clone(); clone.isClone = true; return clone; }