geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Baker (JIRA)" <>
Subject [jira] [Created] (GEODE-130) Suppress proprietary API compiler warnings
Date Thu, 16 Jul 2015 17:00:06 GMT
Anthony Baker created GEODE-130:

             Summary: Suppress proprietary API compiler warnings
                 Key: GEODE-130
             Project: Geode
          Issue Type: Bug
            Reporter: Anthony Baker
            Priority: Trivial

Geode uses several internal JDK classes like SignalHandler and Unsafe.  These generate compiler
warnings like:

warning: SignalHandler is internal proprietary API and may be removed in a future release
    return (handler == SignalHandler.SIG_DFL || handler == SignalHandler.SIG_IGN ? null :

It would be nice to suppress these using the {{-XDignore.symbol.file=true}} javac argument
([1|]) to
remove noise from the build output.  Looks like the only way to do this is to fork the javac
compiler from gradle ([2|])
and add a compiler arg:

options.fork = true
options.forkOptions.executable = 'javac'
options.compilerArgs << '-XDignore.symbol.file'

I'm not sure it's worth the performance hit of forking javac to suppress the warnings.

Of course, we will need to address usage of these API's in Java9 as we will not have access
to internal JDK classes (due to Project Jigsaw).

This message was sent by Atlassian JIRA

View raw message