[ 
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-16.patch

Hi, Marshall:

I poked around the Eclipse settings, and confirmed that the reporter of 
UIMA-1983, in fact, we know him, we used his open-source Knowtator plugin, must 
have changed Eclipse setting, "Field declaration hides another field or 
variable" from default "ignore" to "warning". This is actually a very useful 
setting. By turning it on, I immediately discovered in our code a few places 
where a sub-class declares a variable that's already available in its super 
class.

I will try to convince our team to adopt this setting. Meanwhile, I've create a 
new patch where we keep the @SuppressWarning("hiding") lines.

Thanks for the discussion and advice. It was very helpful.

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, UIMA-4554 patch 2015-08-16.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)

Reply via email to