From lucene-net-dev-return-1555-apmail-incubator-lucene-net-dev-archive=incubator.apache.org@incubator.apache.org Wed Oct 08 18:04:47 2008 Return-Path: Delivered-To: apmail-incubator-lucene-net-dev-archive@locus.apache.org Received: (qmail 48101 invoked from network); 8 Oct 2008 18:04:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2008 18:04:47 -0000 Received: (qmail 40117 invoked by uid 500); 8 Oct 2008 18:04:45 -0000 Delivered-To: apmail-incubator-lucene-net-dev-archive@incubator.apache.org Received: (qmail 40102 invoked by uid 500); 8 Oct 2008 18:04:45 -0000 Mailing-List: contact lucene-net-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@incubator.apache.org Delivered-To: mailing list lucene-net-dev@incubator.apache.org Received: (qmail 40087 invoked by uid 99); 8 Oct 2008 18:04:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 11:04:45 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 18:03:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 575FF234C219 for ; Wed, 8 Oct 2008 11:03:44 -0700 (PDT) Message-ID: <1325285870.1223489024356.JavaMail.jira@brutus> Date: Wed, 8 Oct 2008 11:03:44 -0700 (PDT) From: "Digy (JIRA)" To: lucene-net-dev@incubator.apache.org Subject: [jira] Commented: (LUCENENET-157) SegmentMerger.AddIndexed() performs an illegal cast In-Reply-To: <94187001.1223487104206.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENENET-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638010#action_12638010 ] Digy commented on LUCENENET-157: -------------------------------- I think, it would be better to change the GetFieldNames methods in ParallelReader, SegmentReader and MultiSegmentReader so that they return ICollection not IDictionary (like return hashTable --> return hastTable.Keys) DIGY > SegmentMerger.AddIndexed() performs an illegal cast > --------------------------------------------------- > > Key: LUCENENET-157 > URL: https://issues.apache.org/jira/browse/LUCENENET-157 > Project: Lucene.Net > Issue Type: Bug > Environment: any/all > Reporter: Doug Sale > Attachments: SegmentMerger.patch > > Original Estimate: 0.17h > Remaining Estimate: 0.17h > > This is an error introduced via the JLCA (automated porting process) and stems from the use of System.Collections.Hashtable in the role of java.util.HashSet. > SegmentMerger.AddIndexed() is passed a Hashtable as its 3rd argument, but treats it as if it were a 1-dimensional collection (e.g., IList). > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.