uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Goetz <twgo...@gmx.de>
Subject Re: CDE/JCasGen does not check for multiple definitions of same feature on type
Date Fri, 23 Nov 2007 10:38:26 GMT
Marshall Schor wrote:
> The CDE design was to check for errors when editing using the forms, but
> to let the user do anything they want when editing the source XML directly.
> The checks done against the edited source are done, not by the CDE, but
> by the base UIMA framework code.  My guess is that that code might be
> missing checks for duplicates.

Right, my bad.  Duplicate features are ok from a UIMA perspective.

> The JCasGen assumes the checking was done by the base UIMA framework code.

Ok, but then JCasGen should work off of the internal representation.
Seems to me JCasGen uses the XML as input, and that can produce
invalid Java.

> -Marshall
> Thilo Goetz wrote:
>> Subject line says it all.  I manually created a new
>> AE descriptor, using copy/paste to create lots of
>> feature definitions.  As a result, I had the same
>> feature more than once.  The CDE edits such a file
>> without complaints.  JCasGen also generates Java files
>> without complaining, resulting in invalid Java code.
>> Are these bugs or missing features, or is CDE/JCasGen
>> simply not meant to be used this way?
>> (Note that I can't add a duplicate feature in CDE,
>> there checking does happen.)
>> --Thilo

View raw message