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

Hi, Marshall and Richard:

I gave it a try to add an option for JCasGen so that by default it does not 
produce the @SuppressWarning("hiding") for name shadowing and conflicts. But if 
users choose to not ignore the name shadowing in their Eclipse settings, 
JCasGen will put in the @SuppressWarning("hiding") line to make the warnings go 
away. The option is named as "-jcasgenwarnnameshadowing true/false".

I've attached a new patch where it contains
- a minor fix to the uimaj-jet-expander tool I mentioned earlier
- changes necessary for rendering the @SuppressWarning annotation lines
- changes to jcasgen-maven-plugin as suggested by Richard.

The jcasgen.sh and jcasgen.bat scripts in the release bin folder need to be 
updated to allow this additional command line option but I don't know where to 
find them in the SVN. Also, I was not sure how to make the component editor to 
add a checkbox for the new option for running JCasGen from there.

Please review the changes and let me know your feedback. Thanks!

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