You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Thilo Goetz <tw...@gmx.de> on 2007/08/01 08:07:01 UTC

Re: I SVN Updated everything, but am getting test errors with mvn install, on AnnotationTreeTest

Marshall Schor wrote:
> Running org.apache.uima.cas.test.AnnotationTreeTest
> 
> 
> testTree(org.apache.uima.cas.test.AnnotationTreeTest)  Time elapsed:
> 0.16 sec  <<< FAILURE!
> junit.framework.AssertionFailedError
>  at
> junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
>  at junit.framework.Assert.fail(Assert.java:47)
>  at junit.framework.Assert.assertTrue(Assert.java:20)
>  at junit.framework.Assert.assertTrue(Assert.java:27)
>  at
> org.apache.uima.cas.test.AnnotationTreeTest.testTree(AnnotationTreeTest.java:85)  
> 
> 
> Does anyone else have this failure?  -Marshall

I see it too, but only when running all tests with mvn install.  Running
the test individually works fine.  I'll investigate.

--Thilo


Re: I SVN Updated everything, but am getting test errors with mvn install, on AnnotationTreeTest

Posted by Thilo Goetz <tw...@gmx.de>.
Marshall Schor wrote:
> Thilo Goetz wrote:
>> It's our old friend the type priorities again.  Even though the test
>> case does not use type priorities, types are sorted differently in
>> the type system depending on JVM version.  So the test case went
>> through with JDK 1.6_1, but not 1.5_7, for example.  This sucks.
>> Since I don't have time to go after the root cause of this, I have
>> modified the test case to remove this dependency.
>>   
> As I recall, the type order changes when there is no ordering specified,
> because it depends on
> the order returned from "hashing"; and the hash function changed from
> jdk to jdk.

Yes, I seem to remember something along those lines.  It would be worth
investigating if we could change the implementation not to depend on
the order objects come out of a hash map.  Not now, though.

--Thilo


Re: I SVN Updated everything, but am getting test errors with mvn install, on AnnotationTreeTest

Posted by Marshall Schor <ms...@schor.com>.
Thilo Goetz wrote:
> It's our old friend the type priorities again.  Even though the test
> case does not use type priorities, types are sorted differently in
> the type system depending on JVM version.  So the test case went
> through with JDK 1.6_1, but not 1.5_7, for example.  This sucks.
> Since I don't have time to go after the root cause of this, I have
> modified the test case to remove this dependency.
>   
As I recall, the type order changes when there is no ordering specified, 
because it depends on
the order returned from "hashing"; and the hash function changed from 
jdk to jdk.

-Marshall
> --Thilo
>
> Thilo Goetz wrote:
>   
>> Marshall Schor wrote:
>>     
>>> Running org.apache.uima.cas.test.AnnotationTreeTest
>>>
>>>
>>> testTree(org.apache.uima.cas.test.AnnotationTreeTest)  Time elapsed:
>>> 0.16 sec  <<< FAILURE!
>>> junit.framework.AssertionFailedError
>>>  at
>>> junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
>>>  at junit.framework.Assert.fail(Assert.java:47)
>>>  at junit.framework.Assert.assertTrue(Assert.java:20)
>>>  at junit.framework.Assert.assertTrue(Assert.java:27)
>>>  at
>>> org.apache.uima.cas.test.AnnotationTreeTest.testTree(AnnotationTreeTest.java:85)  
>>>
>>>
>>> Does anyone else have this failure?  -Marshall
>>>       
>> I see it too, but only when running all tests with mvn install.  Running
>> the test individually works fine.  I'll investigate.
>>
>> --Thilo
>>     
>
>
>   


Re: I SVN Updated everything, but am getting test errors with mvn install, on AnnotationTreeTest

Posted by Thilo Goetz <tw...@gmx.de>.
It's our old friend the type priorities again.  Even though the test
case does not use type priorities, types are sorted differently in
the type system depending on JVM version.  So the test case went
through with JDK 1.6_1, but not 1.5_7, for example.  This sucks.
Since I don't have time to go after the root cause of this, I have
modified the test case to remove this dependency.

--Thilo

Thilo Goetz wrote:
> Marshall Schor wrote:
>> Running org.apache.uima.cas.test.AnnotationTreeTest
>>
>>
>> testTree(org.apache.uima.cas.test.AnnotationTreeTest)  Time elapsed:
>> 0.16 sec  <<< FAILURE!
>> junit.framework.AssertionFailedError
>>  at
>> junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
>>  at junit.framework.Assert.fail(Assert.java:47)
>>  at junit.framework.Assert.assertTrue(Assert.java:20)
>>  at junit.framework.Assert.assertTrue(Assert.java:27)
>>  at
>> org.apache.uima.cas.test.AnnotationTreeTest.testTree(AnnotationTreeTest.java:85)  
>>
>>
>> Does anyone else have this failure?  -Marshall
> 
> I see it too, but only when running all tests with mvn install.  Running
> the test individually works fine.  I'll investigate.
> 
> --Thilo