ok, this is a case we didn't think of - one where the no-qualifier version works
but is overridden by another import, caused by another feature referencing the
other version of this.

For now, a workaround is to name your org.company.types.Annotation to something
other than ...Annotation.

-Marshall

On 3/23/2011 11:44 AM, Frank Enders wrote:
> Marshall, thanks for your quick response.
>
>> Can you provide more details on how you are seeing that Annotation in
> this case
>> is being translated to uima.tcas.Annotation, in your setup?
> org.apache.uima.jcas.tcas.Annotation gets imported within Sentence.java:
>
> "import org.apache.uima.jcas.tcas.Annotation;"
>
> Sentence has a complex feature with rangeTypeName uima.tcas.Annotation
> which probably leads to that import.
>
> All occurences of "Annotation" in Sentence.java are without the package
> name. Regardless wheter they are declared as
> org.company.types.Annotation or uima.tcas.Annotation within the
> typesystem. So in all cases the imported Annotation
> org.apache.uima.jcas.tcas.Annotation is used  (as shown on hover in
> eclipse).
>
> Best regards, Frank
>
>

Reply via email to