uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Zhu (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-4554) JCasGen generating rawType warnings for fsGenerator
Date Mon, 17 Aug 2015 03:16:45 GMT

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

James Zhu commented on UIMA-4554:
---------------------------------

Hi, Marshall:

To be clear, with default Eclipse settings, I NEVER see those warnings reported by UIMA-1983.

The field MyAnnotation.typeIndexID is hiding a field from type Annotation
The field MyAnnotation.type is hiding a field from type Annotation

So I never needed to add @SuppressWarning("hiding") in front of them.

On the contrary, when the @SuppressWarning("hiding") lines are added, Eclipse started throwing
warnings, calling them unnecessary.

Was it because some users have Eclipse settings changed so they can see those "The field MyAnnotation.typeIndexID
is hiding a field from type Annotation" warnings? If so, I may convince our team to adopt
that Eclipse setting too.

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)

Mime
View raw message