[
https://issues.apache.org/jira/browse/UIMA-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Zhu updated UIMA-4554:
----------------------------
Attachment: UIMA-4554 patch 2015-08-15.patch
Hi, Marshall:
This is the new patch where I fixed the templates, and used the
uimaj-jet-expander tool to re-generate the JCasTypeTemplate.java and
JCas_TypeTemplate.java files.
I also reviewed the issue UIMA-1983, and understood that @SuppressWarnings
("hiding") were added long time ago in 2011 when people were having issue using
the JCasGen generated Java classes under Java 1.5 and Java 1.6. I've confirmed
that removing the @SuppressWarnings ("hiding") is ok with Java 1.6, 1.7, and
1.8 for the Java classes generated from our type system using JCasGen.
Please review the changes again and let me know your thoughts.
Thanks.
James
> 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: UIMA-4554 patch 2015-08-15 - uimaj-jet-expander.patch,
> UIMA-4554 patch 2015-08-15.patch, 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)