Inherit from "DefaultPromise" in Java

5 views
Skip to first unread message

r4dium

unread,
Feb 11, 2012, 8:38:02 PM2/11/12
to Akka User List
Hi,

I tried to inherit from "DefaultPromise":

public class TestPromize<T> extends DefaultPromise<T>
{
public TestPromize()
{
super( system.dispatcher() );
}
}

However, i got the following error message:
Duplicate methods named ready with the parameters (Duration,
Await.CanAwait) and (Duration, Await.CanAwait) are defined by the type
DefaultPromise<T>

Is there a way to extend DefaultPromise in Java?

rkuhn

unread,
Feb 12, 2012, 2:16:41 AM2/12/12
to akka...@googlegroups.com
This error is currently being worked on, as it also comes up when extending PartialFunction. Building in Eclipse does not currently work, but javac on the command line (i.e. maven) should work fine.

Regards,

Roland

Reply all
Reply to author
Forward
0 new messages