Thanks!  My issue was caused by the project having the wrong compiler
settings in eclipse.

-Marshall

Adam Lally wrote:
> On 10/30/07, Marshall Schor <[EMAIL PROTECTED]> wrote:
>   
>> While fixing another bug, I came across a compile error in the uimaj-cpe
>> project in svn:  in the file:
>> uimaj-cpe/src/test/java/org/apache/uima/collection/impl/SingleDocCollectionReader.java
>> which has this line: assert(!done);   in the code fragment:
>>
>>   public void getNext(CAS aCAS) throws IOException, CollectionException {
>>     assert(!done);
>>
>> This raises an error on my compilation - because the "assert" keyword is
>> something only for Java 5 and onward.
>>
>>     
>
> Assert was added to Java in 1.4.  You might get an error if you have
> your compliance level set to 1.3.
>
> But since this is in a JUnit test, maybe the intention was to do a
> JUnit assert [Assert.assertTrue(!done)] instead of a Java assert?
>
> -Adam
>
>
>   

Reply via email to