As far as I can tell it works fine without overriding get when it is
written in Java. We have samples for that.

/Patrik

25 jun 2013 kl. 10:35 skrev Roland Kuhn <notifications@github.com>:

In akka-actor/src/main/scala/akka/actor/Extension.scala:

> + *
> + * Java API:
> + *
> + * {{{
> + * public class MyExt extends AbstractExtensionId<MyExtImpl>
> + *   implements ExtensionIdProvider {
> + *   public final static MyExt MyExtProvider = new MyExt();
> + *
> + *   private MyExt() {}
> + *
> + *   public MyExt lookup() {
> + *     return MyExt.MyExtProvider;
> + *   }
> + *
> + *   public MyExtImpl createExtension(ExtendedActorSystem system) {
> + *     return new MyExtImpl();

does this mean that super.get returns the right type only if the extension
is implemented in Java?

—
Reply to this email directly or view it on
GitHub<https://github.com/akka/akka/pull/1563/files#r4861390>
.