jboner/akka — comment on commit 57de4c969c59f7b726e08fe260a0596385399cb5
File: akka-testkit/src/main/scala/akka/testkit/TestKitExtension.scala line 20
By patriknw:

The problem is that init is called first, to get the key, and then it is
added in the map.
synchronized of registerExtension would solve it though.
Then, that should do the hasExtension check also.

On Tue, Nov 22, 2011 at 11:20 AM, Roland Kuhn <
reply@reply.github.com
> wrote:

> Yes, I was also thinking about this. Extensions will be loaded in the
> order in which they are given in the configuration (or in program order by
> calling `registerExtension` manually). There is nothing preventing from
> calling `registerExtension` themselves, I was contemplating adding
> `requireExtension(key)`, which would load the extension if not already
> present. That matches e.g. the LaTeX module system.
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/jboner/akka/commit/57de4c969c59f7b726e08fe260a0596385399cb5#commitcomment-737406
>

--

Patrik Nordwall
Typesafe - Enterprise-Grade Scala from the Experts
Twitter: @patriknw