On 4/20/2011 11:57, Jörn Kottmann wrote: > Hello all, > > the Cas Editor needs to create feataure structures. To detect > that a FS is an array Type.isArray is called. If it returns true > an if-else-if statement is used to create the array. > > For some reason this code fails for a certain type, but I do not know which, > would be nice if you could have a look here: > http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/editview/EditViewPage.java?view=markup > > > The if-else-if-else statement is at line 387 to 408. For one type the else is > executed and > logs the error message.
Maybe this has to do with array's type parameter? I think it's part of the array's type name, like ArrayFS<AnnotationFS>, or something like that. > > Is there a framework util method which could create an array of a given type > and given size for me? There doesn't seem to be one, I couldn't find one either. --Thilo > > Thanks, > Jörn > >
