lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LUCENE-4525) JavaDoc of SearcherManager#close is not crystal clear
Date Sat, 03 Nov 2012 10:34:12 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489985#comment-13489985
] 

Michael Osipov edited comment on LUCENE-4525 at 11/3/12 10:33 AM:
------------------------------------------------------------------

Since this is an Apache product, this decision could have been done like for Apache Tomcat.
Mark Thomas has sent a EOL email for Tomcat 5.5 more than a year in advance. This gives everyone
enough time to prepare a migration to Tomcat 7. I would expect something similiar from every
top Apache project. Therefore I prefer Apache components, well tested and long supported.

But this is solely my personal view.
                
      was (Author: michael-o):
    Since this is a Apache product this could have been done like for Apache Tomcat. Mark
Thomas has sent a EOL email for Tomcat 5.5 more than a year in advance. This gives everyone
enough time to prepare a migration to Tomcat 7. I would expect something similiar from every
top Apache project. Therefore I prefer Apache components, well tested and long supported.
                  
> JavaDoc of SearcherManager#close is not crystal clear
> -----------------------------------------------------
>
>                 Key: LUCENE-4525
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4525
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 3.6.1, 4.0
>            Reporter: Michael Osipov
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: 4.1, 5.0
>
>         Attachments: LUCENE-4525.patch, LUCENE-4525.patch
>
>
> Raised from http://www.mail-archive.com/java-user@lucene.apache.org/msg40064.html
> The JavaDoc says:
> {noformat}
>   /**
>    * Close this ReferenceManager to future {@link #acquire() acquiring}. Any
>    * references that were previously {@link #acquire() acquired} won't be
>    * affected, and they should still be {@link #release released} when they are
>    * not needed anymore.
>    */
> {noformat}
> The first sentence is not really clear. I would expect something like:
> {noformat}
> Close this ReferenceManager when the application is shutting down or the
>  underlying index will be disposed. Any references that were previously
>  {@link #acquire() acquired} won't be affected, and they should still be 
> {@link #release released} when they are not needed anymore.
> {noformat}
> Further more, the JavaDoc does not declare that an exception will be thrown on any method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message