I'm using IntelliJ IDEA 10.0.3 and I'm beginning to use the Akka library.
I only use it within Java code, no Scala involved.
I have some problems with code completion and with the Java compiler within IntelliJ IDEA.
For example, when typing this line :
ActorRef myActor = Actors.actorOf(MyActor.class).start();
It compiles well with Maven, but the IDE tells me there's a compilation error :
"Cannot resolve method actorOf(java.lang.Class<MyActor>)"
The IDE then propose me to cast the MyActor.class statement, like this
ActorRef myActor = Actors.actorOf((Class<? extends akka.actor.Actor>) MyActor.class);
which I find very annoying since it works well without it (and btw it's ugly) when I compile my project with Maven (and in other IDE's as well).
My question is, there a compiler warning or something related to the compiler's options that I should enable/disable in order to get rid of this ?
Thanks in advance.