From lucene-net-dev-return-785-apmail-incubator-lucene-net-dev-archive=incubator.apache.org@incubator.apache.org Tue Aug 21 00:52:03 2007 Return-Path: Delivered-To: apmail-incubator-lucene-net-dev-archive@locus.apache.org Received: (qmail 47805 invoked from network); 21 Aug 2007 00:52:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 00:52:02 -0000 Received: (qmail 18166 invoked by uid 500); 21 Aug 2007 00:51:59 -0000 Delivered-To: apmail-incubator-lucene-net-dev-archive@incubator.apache.org Received: (qmail 18147 invoked by uid 500); 21 Aug 2007 00:51:59 -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 18138 invoked by uid 99); 21 Aug 2007 00:51:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 17:51:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 00:51:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5688271420D for ; Mon, 20 Aug 2007 17:51:31 -0700 (PDT) Message-ID: <17001831.1187657491352.JavaMail.jira@brutus> Date: Mon, 20 Aug 2007 17:51:31 -0700 (PDT) From: "George Aroush (JIRA)" To: lucene-net-dev@incubator.apache.org Subject: [jira] Resolved: (LUCENENET-65) Test case "TestSerializable" uses the stream after closing. In-Reply-To: <4916265.1187111255056.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-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] George Aroush resolved LUCENENET-65. ------------------------------------ Resolution: Fixed Patch applied and delivered to 2.1 > Test case "TestSerializable" uses the stream after closing. > ------------------------------------------------------------ > > Key: LUCENENET-65 > URL: https://issues.apache.org/jira/browse/LUCENENET-65 > Project: Lucene.Net > Issue Type: Bug > Reporter: Digy > Assignee: George Aroush > Priority: Trivial > Attachments: TestRAMDirectory.patch > > > > [Test] > public virtual void TestSerializable() > { > Directory dir = new RAMDirectory(); > System.IO.MemoryStream bos = new System.IO.MemoryStream(1024); > Assert.AreEqual(0, bos.Length, "initially empty"); > System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos); > long headerSize = bos.Length; > System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); > formatter.Serialize(out_Renamed.BaseStream, dir); > //out_Renamed.Close(); ----> BUGGY LINE > Assert.IsTrue(headerSize < bos.Length, "contains more then just header"); > out_Renamed.Close(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.