title: Akka Java OneForOneStrategy example not compiling
body: <p>I'm trying to paste the OneForOneStrategy into a simple Hello-Akka program, like so based on this documentation: <a href="http://doc.akka.io/docs/akka/2.3.2/java/fault-tolerance.html" rel="noreferrer">http://doc.akka.io/docs/akka/2.3.2/java/fault-tolerance.html</a></p>
  
  <pre><code>private static SupervisorStrategy strategy = new OneForOneStrategy(10,
          Duration.create("1 minute"),
          new Function&lt;Throwable, SupervisorStrategy.Directive&gt;() {
  
              @Override
              public SupervisorStrategy.Directive apply(Throwable t) {
                  if (t instanceof ArithmeticException) {
                      return resume();
                  } else if (t instanceof NullPointerException) {
                      return restart();
                  } else if (t instanceof IllegalArgumentException) {
                      return stop();
                  } else {
                      return escalate();
                  }
              }
          }
  );
  
  @Override
  public SupervisorStrategy supervisorStrategy() {
      return strategy;
  }
  </code></pre>
  
  <p>However, the resume/restart/stop/escalate method calls don't compile out of the box.
  Why not?</p>