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

Chris Nauroth commented on HADOOP-10892:
----------------------------------------

There are places where we have consciously chosen to use {{Unsafe}}, i.e. 
unmapping a memory-mapped file without needing to code a JNI wrapper over 
{{munmap}}.  It would be legitimate to suppress these.

Unfortunately, I don't believe there is any way to do so.  I once tried and 
failed to suppress the warnings on {{Unsafe}}.  According to this, it is by 
design that you cannot suppress these warnings.

http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6476630

bq. Sun does not support such API and the warning will not be suppressible.

Maybe we just need to close this as won't fix?

> Suppress 'proprietary API' warnings
> -----------------------------------
>
>                 Key: HADOOP-10892
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10892
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Arpit Agarwal
>
> The 'proprietary API' warnings provide no useful information and clutter up 
> the build output, hiding legitimate warnings in the noise.
> Most of the warnings appear to be about OutputFormat, XMLSerializer and 
> Unsafe. I don't think these APIs are going away any time soon, and if they do 
> we can deal with it when it happens.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to