Extending TypedActor in 1.1 RC1 (Java API)

186 views
Skip to first unread message

gutzeit

unread,
May 11, 2011, 8:45:10 AM5/11/11
to akka...@googlegroups.com
Hi,

I am trying to write a TypedActor in 1.1 RC1 and there seems to be some major change there (Java API). TypedActor implements Actor but not all methods which means that classes extending from TypedActor have to implement those "become$default$2()" is one of them.

Am I missing something here ? I checked the 1.0 - 1.1 migration guide but it does not mention anything related to that.

Thanks in advance.

√iktor Ҡlang

unread,
May 11, 2011, 9:10:24 AM5/11/11
to akka...@googlegroups.com
Hi!


I suspect you have something wrong in your setup.

Works just fine here: https://github.com/jboner/akka/blob/master/akka-typed-actor/src/test/java/akka/actor/SimpleJavaPojoImpl.java
 

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.



--
Viktor Klang,
Director of Research and Development
Scalable Solutions

Code:   github.com/viktorklang
Follow: twitter.com/viktorklang
Read:   klangism.tumblr.com

Eugene Vigdorchik

unread,
May 11, 2011, 9:08:02 AM5/11/11
to akka...@googlegroups.com
I'm stupid. You probably don't supply any scala version. I fail to
reproduce it anyway though. --Eugene.

On Wed, May 11, 2011 at 5:02 PM, Eugene Vigdorchik
<eugene.v...@gmail.com> wrote:
> Hi,
> what is the scala version you compile against? I cannot reproduce the
> error here...
>
> Cheers,
> Eugene.

Eugene Vigdorchik

unread,
May 11, 2011, 9:02:07 AM5/11/11
to akka...@googlegroups.com
Hi,
what is the scala version you compile against? I cannot reproduce the
error here...

Cheers,
Eugene.

On Wed, May 11, 2011 at 4:45 PM, gutzeit <gut...@gmail.com> wrote:

gutzeit

unread,
May 11, 2011, 9:44:50 AM5/11/11
to akka...@googlegroups.com
I am actually using Java API and I am not compiling the Akka, just use the RC1 binaries with everything it brings with it. But I see that TypedActor does not implement "become default".

√iktor Ҡlang

unread,
May 11, 2011, 10:01:10 AM5/11/11
to akka...@googlegroups.com
On Wed, May 11, 2011 at 3:44 PM, gutzeit <gut...@gmail.com> wrote:
I am actually using Java API and I am not compiling the Akka, just use the RC1 binaries with everything it brings with it. But I see that TypedActor does not implement "become default".

I think you need to examine your setup, if you're using the correct version of Scala etc.
 

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.

Luciano Fiandesio

unread,
May 11, 2011, 10:58:23 AM5/11/11
to Akka User List
I'm having a similar problem with Intellij 10, Akka 1.1RC1 and scala-
library-2.9.0.RC3.
My code compiles fine from both Intellij and command line, but still
Intellij complains that my class extending TypedActor should implement
"become$default$()2".

That wasn't the case with akka 1.0

L

On May 11, 4:01 pm, √iktor Ҡlang <viktor.kl...@gmail.com> wrote:
> On Wed, May 11, 2011 at 3:44 PM, gutzeit <gutz...@gmail.com> wrote:
> > I am actually using Java API and I am not compiling the Akka, just use the
> > RC1 binaries with everything it brings with it. But I see that TypedActor
> > does not implement "become default".
>
> I think you need to examine your setup, if you're using the correct version
> of Scala etc.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Akka User List" group.
> > To post to this group, send email to akka...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > akka-user+...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/akka-user?hl=en.
>
> --
> Viktor Klang,
> Director of Research and Development
> Scalable Solutions <http://www.scalablesolutions.se>

gutzeit

unread,
May 11, 2011, 11:12:21 AM5/11/11
to akka...@googlegroups.com
So I am not alone in this :), I am using IntelliJ as well.

√iktor Ҡlang

unread,
May 11, 2011, 11:36:39 AM5/11/11
to akka...@googlegroups.com
On Wed, May 11, 2011 at 4:58 PM, Luciano Fiandesio <in...@lucianofiandesio.com> wrote:
I'm having a similar  problem with Intellij 10, Akka 1.1RC1 and scala-
library-2.9.0.RC3.
My code compiles fine from both Intellij and command line, but still
Intellij complains that my class extending TypedActor should implement
"become$default$()2".

Does intelliJ complain, or does javac complain? If Javac complains, could you send me what it says?
 

Eugene Vigdorchik

unread,
May 11, 2011, 11:50:27 AM5/11/11
to akka...@googlegroups.com
Is it only the anaysis in IntelliJ that complains? IntelliJ has its
own java analysis different from javac, so if the compilation (ctr-f9)
succeeds, then it's the IDE problem, and the bug should be raised
against IntelliJ. --Eugene.

Luciano Fiandesio

unread,
May 11, 2011, 11:56:13 AM5/11/11
to Akka User List
Yes, on my side is only Intellij.
The code compiles fine in Intellij (build -> make project) but it
keeps a red mark on the class name. Annoying but not a big deal.

L

On May 11, 5:50 pm, Eugene Vigdorchik <eugene.vigdorc...@gmail.com>
wrote:

√iktor Ҡlang

unread,
May 11, 2011, 11:58:12 AM5/11/11
to akka...@googlegroups.com
good thanks, log a ticket with jetbrains. thanks

Nicolas Peeters

unread,
Nov 26, 2011, 1:35:00 PM11/26/11
to akka...@googlegroups.com
Same here... And we're a few months later.

√iktor Ҡlang

unread,
Nov 26, 2011, 2:35:13 PM11/26/11
to akka...@googlegroups.com
Have you've opened a ticket with Jetbrains?

(I'm assuming that javac can compile it?)

Cheers,


On Sat, Nov 26, 2011 at 7:35 PM, Nicolas Peeters <peet...@gmail.com> wrote:
Same here... And we're a few months later.

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/O4d0f9ZhUQwJ.

To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.



--
Viktor Klang

Akka Tech Lead
Typesafe - Enterprise-Grade Scala from the Experts

Twitter: @viktorklang

Reply all
Reply to author
Forward
0 new messages