You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Kelly Elias (JIRA)" <ji...@apache.org> on 2010/11/05 23:08:41 UTC

[jira] Created: (LUCENENET-378) Objects with a Close method should support IDisposable

Objects with a Close method should support IDisposable
------------------------------------------------------

                 Key: LUCENENET-378
                 URL: https://issues.apache.org/jira/browse/LUCENENET-378
             Project: Lucene.Net
          Issue Type: Improvement
         Environment: .NET
            Reporter: Kelly Elias


It would be very useful to have objects such as IndexSearcher and Directory support IDisposable. Then users can use "using" blocks to manage the lifespan of the objects and don't need to worry about accidentally leaving such objects open.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[Lucene.Net] [jira] Updated: (LUCENENET-378) Objects with a Close method should support IDisposable

Posted by "Troy Howard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Troy Howard updated LUCENENET-378:
----------------------------------

         Due Date: 28/Mar/11
         Priority: Critical  (was: Major)
    Fix Version/s:     (was: Lucene.Net 3.x)
                   Lucene.Net 2.9.4

Scheduled for 2.9.4 release. 

This particular issue is too significant for .NET use cases, that leaving it for a 3.X release would take too long. 

This will involve a significant level of change to the source, tests, and demos. This should be implemented to be *backwards compatible* with standard Java API, but also allow use with IDisposable constructs.  

> Objects with a Close method should support IDisposable
> ------------------------------------------------------
>
>                 Key: LUCENENET-378
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-378
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Core, Lucene.Net Demo, Lucene.Net Test
>         Environment: .NET
>            Reporter: Kelly Elias
>            Priority: Critical
>             Fix For: Lucene.Net 2.9.4
>
>
> It would be very useful to have objects such as IndexSearcher and Directory support IDisposable. Then users can use "using" blocks to manage the lifespan of the objects and don't need to worry about accidentally leaving such objects open.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[Lucene.Net] [jira] [Commented] (LUCENENET-378) Objects with a Close method should support IDisposable

Posted by "Digy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENENET-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011160#comment-13011160 ] 

Digy commented on LUCENENET-378:
--------------------------------

IDisposable is added to the follwing classes (and related test cases):

Directory.cs 
FileSwitchDirectory.cs 
RAMDirectory.cs 
FSDirectory.cs 
IndexWriter.cs 
IndexReader.cs 
IndexSearcher.cs 
CompoundFileReader.cs 
Searcher.cs 
JustCompileSearch.cs 
MultiSearcher.cs 

DIGY

> Objects with a Close method should support IDisposable
> ------------------------------------------------------
>
>                 Key: LUCENENET-378
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-378
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Core, Lucene.Net Demo, Lucene.Net Test
>         Environment: .NET
>            Reporter: Kelly Elias
>            Priority: Critical
>             Fix For: Lucene.Net 2.9.4
>
>
> It would be very useful to have objects such as IndexSearcher and Directory support IDisposable. Then users can use "using" blocks to manage the lifespan of the objects and don't need to worry about accidentally leaving such objects open.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[Lucene.Net] [jira] [Closed] (LUCENENET-378) Objects with a Close method should support IDisposable

Posted by "Digy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Digy closed LUCENENET-378.
--------------------------

    Resolution: Fixed

> Objects with a Close method should support IDisposable
> ------------------------------------------------------
>
>                 Key: LUCENENET-378
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-378
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Core, Lucene.Net Demo, Lucene.Net Test
>         Environment: .NET
>            Reporter: Kelly Elias
>            Priority: Critical
>             Fix For: Lucene.Net 2.9.4
>
>
> It would be very useful to have objects such as IndexSearcher and Directory support IDisposable. Then users can use "using" blocks to manage the lifespan of the objects and don't need to worry about accidentally leaving such objects open.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (LUCENENET-378) Objects with a Close method should support IDisposable

Posted by "Scott Lombard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Lombard updated LUCENENET-378:
------------------------------------

          Component/s: Lucene.Net Test
                       Lucene.Net Demo
                       Lucene.Net Core
    Affects Version/s: .NET API
        Fix Version/s: .NET API

This is something that will be done with the implementation of the .NET API

> Objects with a Close method should support IDisposable
> ------------------------------------------------------
>
>                 Key: LUCENENET-378
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-378
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Core, Lucene.Net Demo, Lucene.Net Test
>    Affects Versions: .NET API
>         Environment: .NET
>            Reporter: Kelly Elias
>             Fix For: .NET API
>
>
> It would be very useful to have objects such as IndexSearcher and Directory support IDisposable. Then users can use "using" blocks to manage the lifespan of the objects and don't need to worry about accidentally leaving such objects open.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira