When I did this, I saw that

1) JCasGen generates the Classes into the same "package": org.company.types

2) This package has the classes:
    Sentence.java
    Sentence_type.java
    Annotation.java
    Annotation_type.java

3) The Sentence type extends "Annotation", which is *not* imported.  This means
that Java looks into the same package to resolve this.  In Eclipse, when I hover
over Annotation in the Sentence type, it shows org.company.types.Annotation.

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?

-Marshall



On 3/23/2011 9:36 AM, Frank Enders wrote:
> Hi together,
>
> in a TypeSystem we have a type "org.company.types.Annotation".
> Now we have another type "org.company.types.Sentence" which uses
> "org.company.types.Annotation" as its supertypeName.
> When we generate the corresponding Java classes using JCasGen the
> fully-qualified name seems to be omitted:
> Sentence.java extends "Annotation" which gets translated to
> "uima.tcas.Annotation" instead of "org.company.types.Annotation".
>
> Is this a bug in JCasGen or is it a desired behaviour?
>
> Thanks and all the best,
> Frank
>
>

Reply via email to