Extending TypedActor in 1.1 RC1 (Java API)

186 peržiūros
Praleisti ir pereiti prie pirmo neskaityto pranešimo

gutzeit

neskaityta,
2011-05-11 08:45:102011-05-11
kam: 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

neskaityta,
2011-05-11 09:10:242011-05-11
kam: 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

neskaityta,
2011-05-11 09:08:022011-05-11
kam: 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

neskaityta,
2011-05-11 09:02:072011-05-11
kam: 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

neskaityta,
2011-05-11 09:44:502011-05-11
kam: 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

neskaityta,
2011-05-11 10:01:102011-05-11
kam: 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

neskaityta,
2011-05-11 10:58:232011-05-11
kam: 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

neskaityta,
2011-05-11 11:12:212011-05-11
kam: akka...@googlegroups.com
So I am not alone in this :), I am using IntelliJ as well.

√iktor Ҡlang

neskaityta,
2011-05-11 11:36:392011-05-11
kam: 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

neskaityta,
2011-05-11 11:50:272011-05-11
kam: 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

neskaityta,
2011-05-11 11:56:132011-05-11
kam: 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

neskaityta,
2011-05-11 11:58:122011-05-11
kam: akka...@googlegroups.com
good thanks, log a ticket with jetbrains. thanks

Nicolas Peeters

neskaityta,
2011-11-26 13:35:002011-11-26
kam: akka...@googlegroups.com
Same here... And we're a few months later.

√iktor Ҡlang

neskaityta,
2011-11-26 14:35:132011-11-26
kam: 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

Atsakyti visiems
Atsakyti autoriui
Persiųsti
0 naujų pranešimų