Even though the “real” compiler will compile it just fine, it is still 
interesting to find out what can possibly trip up Eclipse here:

===[excerpt from `javap akka.actor.Props`]===
  public static akka.actor.Props apply(akka.japi.Creator<? extends 
akka.actor.Actor>);
  public static akka.actor.Props apply(java.lang.Class<?>, 
scala.collection.Seq<java.lang.Object>);
  public static akka.actor.Props apply(scala.Function0<akka.actor.Actor>, 
java.lang.String, akka.routing.RouterConfig, akka.actor.Deploy);
  public static akka.actor.Props create(java.lang.Class<?>, 
java.lang.Object...);
  public static akka.actor.Props create(java.lang.Class<?>, 
scala.collection.Seq<java.lang.Object>);
===[now parts with -v]===
  public static <T extends akka/actor/Actor> akka.actor.Props 
create(akka.japi.Creator<T>);
    flags: ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
         0: getstatic     #20                 // Field 
akka/actor/Props$.MODULE$:Lakka/actor/Props$;
         3: aload_0       
         4: invokevirtual #45                 // Method 
akka/actor/Props$.create:(Lakka/japi/Creator;)Lakka/actor/Props;
         7: areturn       
    Signature: #422                         // 
<T::Lakka/actor/Actor;>(Lakka/japi/Creator<TT;>;)Lakka/actor/Props;

  public static akka.actor.Props apply(akka.japi.Creator<? extends 
akka.actor.Actor>);
    flags: ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
         0: getstatic     #20                 // Field 
akka/actor/Props$.MODULE$:Lakka/actor/Props$;
         3: aload_0       
         4: invokevirtual #60                 // Method 
akka/actor/Props$.apply:(Lakka/japi/Creator;)Lakka/actor/Props;
         7: areturn       
    Signature: #426                         // 
(Lakka/japi/Creator<+Lakka/actor/Actor;>;)Lakka/actor/Props;

===[end]===

So, the methods clearly are there …

Regards,

Roland

30 jan 2014 kl. 13:11 skrev √iktor Ҡlang <[email protected]>:

> Hi,
> 
> What is the error given by the compiler when you compile it?
> 
> Cheers,
> V
> 
> On Jan 30, 2014 12:54 PM, "Kaizah Kaiser" <[email protected]> wrote:
> Hi,
> 
> I am using Akka 2.2.3 in Java and am trying to make an actor that is an 
> extension of UntypedActor. I need to create the props for this actor and give 
> it to my actor creation but for some reason, it gives me the error that Props 
> does not have a method create (and all docs and examples do say so). I am 
> using Maven and have the following dependencies:
> 
>         <dependency>
>             <groupId>com.typesafe.akka</groupId>
>             <artifactId>akka-remote_2.10</artifactId>
>             <version>2.2.3</version>
>         </dependency>
>         <dependency>
>             <groupId>com.typesafe.akka</groupId>
>             <artifactId>akka-actor_2.10</artifactId>
>             <version>2.2.3</version>
>         </dependency>
> 
> Attached you can see screenshots of what is happening, any clues?
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to