[jbosstools-issues] [JBoss JIRA] (JBIDE-24997) could org.jboss.tools.ws.jaxrs.core migrate to use lucene 6.1 instead of 3.5?

Nick Boldt (JIRA) issues at jboss.org
Fri Sep 8 16:18:01 EDT 2017


    [ https://issues.jboss.org/browse/JBIDE-24997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461063#comment-13461063 ] 

Nick Boldt commented on JBIDE-24997:
------------------------------------

PR [1] causes some 37 serious compilation errors:

[1] https://github.com/jbosstools/jbosstools-webservices/pull/277

{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on project org.jboss.tools.ws.jaxrs.core: Compilation failure: Compilation failure:
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/LuceneDocumentFactory.java:[304]
[ERROR] document.add(new Field(name, value, Field.Store.YES, Field.Index.NOT_ANALYZED));
[ERROR] ^^^^^
[ERROR] Index cannot be resolved or is not a field
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/LuceneDocumentFactory.java:[324]
[ERROR] document.add(new Field(name, value, Field.Store.YES, Field.Index.NOT_ANALYZED));
[ERROR] ^^^^^
[ERROR] Index cannot be resolved or is not a field
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[21]
[ERROR] import org.apache.lucene.analysis.standard.StandardAnalyzer;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.apache.lucene.analysis.standard cannot be resolved
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[64]
[ERROR] private final StandardAnalyzer analyzer;
[ERROR] ^^^^^^^^^^^^^^^^
[ERROR] StandardAnalyzer cannot be resolved to a type
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[82]
[ERROR] analyzer = new StandardAnalyzer(Version.LUCENE_35);
[ERROR] ^^^^^^^^
[ERROR] StandardAnalyzer cannot be resolved to a type
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[82]
[ERROR] analyzer = new StandardAnalyzer(Version.LUCENE_35);
[ERROR] ^^^^^^^^^^^^^^^^
[ERROR] StandardAnalyzer cannot be resolved to a type
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[82]
[ERROR] analyzer = new StandardAnalyzer(Version.LUCENE_35);
[ERROR] ^^^^^^^^^
[ERROR] LUCENE_35 cannot be resolved or is not a field
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[83]
[ERROR] config = new IndexWriterConfig(Version.LUCENE_35, analyzer);
[ERROR] ^^^^^^^^^
[ERROR] LUCENE_35 cannot be resolved or is not a field
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[83]
[ERROR] config = new IndexWriterConfig(Version.LUCENE_35, analyzer);
[ERROR] ^^^^^^^^
[ERROR] StandardAnalyzer cannot be resolved to a type
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[87]
[ERROR] indexReader = IndexReader.open(indexWriter, true);
[ERROR] ^^^^
[ERROR] The method open(IndexWriter, boolean) is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[102]
[ERROR] indexWriter.close(true);
[ERROR] ^^^^^
[ERROR] The method close() in the type IndexWriter is not applicable for the arguments (boolean)
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[197]
[ERROR] final BooleanQuery deleteResourceMarkersQuery = new BooleanQuery();
[ERROR] ^^^^^^^^^^^^^^^^^^
[ERROR] The constructor BooleanQuery() is undefined
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[198]
[ERROR] deleteResourceMarkersQuery.add(new BooleanClause(new TermQuery(identifierTerm), Occur.MUST));
[ERROR] ^^^
[ERROR] The method add(BooleanClause) is undefined for the type BooleanQuery
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[199]
[ERROR] deleteResourceMarkersQuery.add(new BooleanClause(new TermQuery(markerTypeTerm), Occur.MUST_NOT));
[ERROR] ^^^
[ERROR] The method add(BooleanClause) is undefined for the type BooleanQuery
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[241]
[ERROR] final BooleanQuery query = new BooleanQuery();
[ERROR] ^^^^^^^^^^^^^^^^^^
[ERROR] The constructor BooleanQuery() is undefined
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[244]
[ERROR] query.add(new BooleanClause(new TermQuery(term), Occur.MUST));
[ERROR] ^^^
[ERROR] The method add(BooleanClause) is undefined for the type BooleanQuery
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[269]
[ERROR] indexReader.isCurrent(), indexReader.hasDeletions(), indexReader.numDocs());
[ERROR] ^^^^^^^^^
[ERROR] The method isCurrent() is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[300]
[ERROR] indexReader.isCurrent(), indexReader.hasDeletions(), indexReader.numDocs());
[ERROR] ^^^^^^^^^
[ERROR] The method isCurrent() is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[304]
[ERROR] searcher.search(query, collector);
[ERROR] ^^^^^^
[ERROR] The method search(Query, int) in the type IndexSearcher is not applicable for the arguments (BooleanQuery, JaxrsElementsIndexationDelegate.JaxrsElementsCollector<T>)
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[328]
[ERROR] indexReader.isCurrent(), indexReader.hasDeletions(), indexReader.numDocs());
[ERROR] ^^^^^^^^^
[ERROR] The method isCurrent() is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[332]
[ERROR] searcher.search(query, collector);
[ERROR] ^^^^^^
[ERROR] The method search(Query, int) in the type IndexSearcher is not applicable for the arguments (BooleanQuery, JaxrsElementsIndexationDelegate.JaxrsEndpointsCollector)
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[352]
[ERROR] indexReader.isCurrent(), indexReader.hasDeletions(), indexReader.numDocs());
[ERROR] ^^^^^^^^^
[ERROR] The method isCurrent() is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[367]
[ERROR] final IndexReader newIndexReader = IndexReader.openIfChanged(indexReader, indexWriter, true);
[ERROR] ^^^^^^^^^^^^^
[ERROR] The method openIfChanged(IndexReader, IndexWriter, boolean) is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[371]
[ERROR] indexReader.isCurrent(), indexReader.hasDeletions(), indexReader.numDocs());
[ERROR] ^^^^^^^^^
[ERROR] The method isCurrent() is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[385]
[ERROR] static abstract class AnyResultsCollector<T> extends Collector {
[ERROR] ^^^^^^^^^
[ERROR] The type Collector cannot be the superclass of AnyResultsCollector; a superclass must be a class
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[403]
[ERROR] public void setScorer(Scorer scorer) throws IOException {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method setScorer(Scorer) of type JaxrsElementsIndexationDelegate.AnyResultsCollector<T> must override or implement a supertype method
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[407]
[ERROR] public void setNextReader(IndexReader indexReader, int docBase) throws IOException {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method setNextReader(IndexReader, int) of type JaxrsElementsIndexationDelegate.AnyResultsCollector<T> must override or implement a supertype method
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[413]
[ERROR] public boolean acceptsDocsOutOfOrder() {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method acceptsDocsOutOfOrder() of type JaxrsElementsIndexationDelegate.AnyResultsCollector<T> must override or implement a supertype method
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[451]
[ERROR] class JaxrsElementsCollector<T> extends AnyResultsCollector<T> {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The hierarchy of the type JaxrsElementsCollector is inconsistent
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[463]
[ERROR] public void collect(int docId) throws IOException {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method collect(int) of type JaxrsElementsIndexationDelegate.JaxrsElementsCollector<T> must override or implement a supertype method
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[465]
[ERROR] getIndexReader().isDeleted(docId));
[ERROR] ^^^^^^^^^
[ERROR] The method isDeleted(int) is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[477]
[ERROR] class JaxrsEndpointsCollector extends AnyResultsCollector<JaxrsEndpoint> {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The hierarchy of the type JaxrsEndpointsCollector is inconsistent
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[488]
[ERROR] public void collect(int docId) throws IOException {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method collect(int) of type JaxrsElementsIndexationDelegate.JaxrsEndpointsCollector must override or implement a supertype method
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[490]
[ERROR] getIndexReader().isDeleted(docId));
[ERROR] ^^^^^^^^^
[ERROR] The method isDeleted(int) is undefined for the type IndexReader
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[502]
[ERROR] class ResourcesCollector extends AnyResultsCollector<IResource> {
[ERROR] ^^^^^^^^^^^^^^^^^^
[ERROR] The hierarchy of the type ResourcesCollector is inconsistent
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[508]
[ERROR] public void collect(int docId) throws IOException {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method collect(int) of type JaxrsElementsIndexationDelegate.ResourcesCollector must override or implement a supertype method
[ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-webservices/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/search/JaxrsElementsIndexationDelegate.java:[510]
[ERROR] getIndexReader().isDeleted(docId));
[ERROR] ^^^^^^^^^
[ERROR] The method isDeleted(int) is undefined for the type IndexReader
[ERROR] 37 problems (37 errors)
{code}

> could org.jboss.tools.ws.jaxrs.core migrate to use lucene 6.1 instead of 3.5?
> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-24997
>                 URL: https://issues.jboss.org/browse/JBIDE-24997
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.5.1.AM1
>            Reporter: Nick Boldt
>            Assignee: Jeff MAURY
>             Fix For: 4.5.1.AM2
>
>         Attachments: ws.jaxrs.core_lucene3.5.png
>
>
> According to p2, org.jboss.tools.ws.jaxrs.core depends on lucene 3.5. But the latest in Oxygen is 6.1. Could we move up to the latest?



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list