You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michele Bini (JIRA)" <ji...@apache.org> on 2005/11/25 23:37:56 UTC

[jira] Created: (LUCENE-473) Fix to let Searcher.close() and other methods accessible from c++ code

Fix to let Searcher.close() and other methods accessible from c++ code
----------------------------------------------------------------------

         Key: LUCENE-473
         URL: http://issues.apache.org/jira/browse/LUCENE-473
     Project: Lucene - Java
        Type: Bug
  Components: Search  
    Reporter: Michele Bini
 Attachments: gcj-interface-virtual-class.diff

gcjh doesn't place in abstract classes implementing an interface the declarations for the interface methods that are not explicitly declared in the abstract class (wew).

Thus you cannot directly invoce many of lucene.search.Searcher methods, most notably close(), from c++ code.

I'm attaching a patch that declares them as abstract in lucene.search.Searcher to work around this problem.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (LUCENE-473) Fix to let Searcher.close() and other methods accessible from c++ code

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-473?page=all ]
     
Erik Hatcher closed LUCENE-473:
-------------------------------

    Fix Version: 1.9
     Resolution: Duplicate

> Fix to let Searcher.close() and other methods accessible from c++ code
> ----------------------------------------------------------------------
>
>          Key: LUCENE-473
>          URL: http://issues.apache.org/jira/browse/LUCENE-473
>      Project: Lucene - Java
>         Type: Bug
>   Components: Search
>     Reporter: Michele Bini
>      Fix For: 1.9
>  Attachments: gcj-interface-virtual-class.diff
>
> gcjh doesn't place in abstract classes implementing an interface the declarations for the interface methods that are not explicitly declared in the abstract class (wew).
> Thus you cannot directly invoce many of lucene.search.Searcher methods, most notably close(), from c++ code.
> I'm attaching a patch that declares them as abstract in lucene.search.Searcher to work around this problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (LUCENE-473) Fix to let Searcher.close() and other methods accessible from c++ code

Posted by "Michele Bini (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LUCENE-473?page=all ]

Michele Bini updated LUCENE-473:
--------------------------------

    Attachment: gcj-interface-virtual-class.diff

The patch

> Fix to let Searcher.close() and other methods accessible from c++ code
> ----------------------------------------------------------------------
>
>          Key: LUCENE-473
>          URL: http://issues.apache.org/jira/browse/LUCENE-473
>      Project: Lucene - Java
>         Type: Bug
>   Components: Search
>     Reporter: Michele Bini
>  Attachments: gcj-interface-virtual-class.diff
>
> gcjh doesn't place in abstract classes implementing an interface the declarations for the interface methods that are not explicitly declared in the abstract class (wew).
> Thus you cannot directly invoce many of lucene.search.Searcher methods, most notably close(), from c++ code.
> I'm attaching a patch that declares them as abstract in lucene.search.Searcher to work around this problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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