uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: JCasGen omitting fully-qualified class name?
Date Wed, 23 Mar 2011 14:09:04 GMT
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:

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?


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

View raw message