uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-6056) JCasGen for producing FSArray is a raw type warning
Date Wed, 12 Jun 2019 21:00:00 GMT

    [ https://issues.apache.org/jira/browse/UIMA-6056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862457#comment-16862457
] 

Marshall Schor commented on UIMA-6056:
--------------------------------------

Hi, In looking at the patch, the special treatment is invoked for both FSArrays and FSLists. 


The new code in Jg calls getJavaRangeArrayElementType even if the feature descriptor isn't
an array.  But this looks like it might be OK, for FSList, if the value was available, but
if it wasn't, might throw an exception?

It would be good to have some test cases to confirm / test these things :)

> JCasGen for producing FSArray is a raw type warning
> ---------------------------------------------------
>
>                 Key: UIMA-6056
>                 URL: https://issues.apache.org/jira/browse/UIMA-6056
>             Project: UIMA
>          Issue Type: Bug
>          Components: UIMA
>    Affects Versions: 3.0.2SDK
>            Reporter: Hai-Son Nguyen
>            Priority: Minor
>         Attachments: patch-uima-6056v1.txt
>
>
> With the conversion of FSArray into Generic FSArray<> the JCasGen process does
not handle the Generic type properly and will cause extensive warnings in application code.
> The 4 methods generating warnings are:
> xXXX - Feature name, Generic - generic type
>  * *public* FSArray getXXX() { *...* }
>  * *public* *void* setXXX(FSArray v) \{ ... }    
>  * *public* Generic getXXX(*int* i) \{ ... }
>  * *public* *void* setXXX(*int* i, Generic v) \{ ... }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message