[ 
https://issues.apache.org/jira/browse/UIMA-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735982#action_12735982
 ] 

Jörn Kottmann commented on UIMA-1455:
-------------------------------------

After applying the patch tests fail with maven but not with eclipse. It seems 
that maven
enables assertions. Here is the stack trace:

java.lang.AssertionError
        at org.apache.lucene.analysis.TokenStream.next(TokenStream.java:90)
        at 
org.apache.uima.lucas.indexer.analysis.TokenStreamMerger.rebuildSortedTokens(TokenStreamMerger.java:118)
        at 
org.apache.uima.lucas.indexer.analysis.TokenStreamMerger.next(TokenStreamMerger.java:102)
        at 
org.apache.uima.lucas.indexer.analysis.TokenStreamMergerTest.testNext(TokenStreamMergerTest.java:78)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)

> Lucas should not use deprecated lucene API
> ------------------------------------------
>
>                 Key: UIMA-1455
>                 URL: https://issues.apache.org/jira/browse/UIMA-1455
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Sandbox-Lucas
>            Reporter: Jörn Kottmann
>            Priority: Minor
>         Attachments: UIMA-1455.patch
>
>
> Right now Lucas uses deprecated lucene APIs. That should be refactored to use 
> the new suggested API.

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

Reply via email to