java.lang.Void?

-- 
Cheers,
√
On 13 Aug 2015 09:01, "Akka Team" <akka.offic...@gmail.com> wrote:

> Yes, that is a little unfortunate: the Scala type system allows the
> expression of non-termination (the bottom type—Nothing) which Java does not
> know about, so this it what happens “under the hood” (i.e. in the sausage
> factory).
>
> We might want to change the return type of `fail` from Nothing to Unit,
> what do you think, Johannes?
>
> Regards,
>
> Roland
>
> On Tue, Aug 11, 2015 at 1:52 PM, <john.vie...@gmail.com> wrote:
>
>> ok I found out:
>>
>> return new TestResponse(response,null,null,null){
>>       public  scala.runtime.Nothing$ fail( String message) { return null;}
>>
>>       public void assertEquals(int expected, int actual, String message) { }
>>
>>
>>       public void assertEquals(Object expected, Object actual, String 
>> message) { }
>>
>>       @Override
>>       public void assertTrue(boolean predicate, String message) {}
>>    };
>> }
>>
>>
>>
>> The "scala.runtime.Nothing$" return type on fail was not obvious to me.
>>
>>
>>
>> Am Dienstag, 11. August 2015 12:24:32 UTC+2 schrieb john....@gmail.com:
>>>
>>> I am extending
>>>
>>> akka.http.javadsl.testkit.RouteTest.
>>>
>>> In one of the methods I need to return a TestResponse.
>>>
>>>  How can I do this with java
>>>
>>> public TestResponse createTestResponse(HttpResponse response) {
>>>
>>>    return new TestResponse(response,null,null,null);
>>> }
>>>
>>>
>>> does not work?
>>>
>>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Akka Team
> Typesafe - Reactive apps on the JVM
> Blog: letitcrash.com
> Twitter: @akkateam
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to