You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Srikanth Sundarrajan (JIRA)" <ji...@apache.org> on 2014/12/24 16:06:13 UTC

[jira] [Created] (LENS-163) Proprietary classes referenced in LensServer

Srikanth Sundarrajan created LENS-163:
-----------------------------------------

             Summary: Proprietary classes referenced in LensServer
                 Key: LENS-163
                 URL: https://issues.apache.org/jira/browse/LENS-163
             Project: Apache Lens
          Issue Type: Bug
          Components: server
            Reporter: Srikanth Sundarrajan
            Assignee: Srikanth Sundarrajan


LensServer imports the following dependencies

{code}
import sun.misc.Signal;
import sun.misc.SignalHandler;
{code}

and this is being used to register essentially shutdownhook.

{code}
...
    Signal.handle(new Signal("TERM"), new SignalHandler() {

      @Override
      public void handle(Signal signal) {
...
{code}

We should use Runtime::addShutdownHook() instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)