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-4554) JCasGen generating rawType warnings for fsGenerator
Date Fri, 14 Aug 2015 14:20:45 GMT

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

Marshall Schor commented on UIMA-4554:
--------------------------------------

Hi James,

I see you've removed the @SuppressWarnings ("hiding") annotations.  These were put in under
Jira UIMA-1983.  Can you confirm these are no longer needed (perhaps due to some Java compiler
changes in the Eclipse compiler that the Jira was talking about)?

The changes you did were the "workaround" changes; I think it might be better to put in the
actual right type instead.

The way to make changes in this area of JCasGen is to edit in the uima-tools project the templates
for these files, located at
uimaj-tools/src/main/javajet/jcasgen/templates.  Then run the javajet generator (you have
to check that out; it's part of the uimaj svn directory with the name uimaj-jet-expander.
 That project has a couple of Eclipse run launchers: JetExpander.launch and JetExpander_Type.launch.
 There's a Readme.txt file that tells how to run this to regenerate the template java files.

> JCasGen generating rawType warnings for fsGenerator
> ---------------------------------------------------
>
>                 Key: UIMA-4554
>                 URL: https://issues.apache.org/jira/browse/UIMA-4554
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.8.1SDK
>            Reporter: Marshall Schor
>            Priority: Minor
>             Fix For: 2.8.2SDK
>
>         Attachments: uimaj-tools-UIMA-4554-2015-08-11.patch
>
>
> JCasGen generate references to FsGenerator which was changed in 2.8.0 to have generic
type information.  So the resulting generated code causes warnings about raw types being used.
 Workaround - add a @SuppressWarnings("rawtypes"), but a better thing would be to add the
proper generic arguments.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message