[akka-user] [akka-streams] Java7 - output type for map

2015-09-04 Thread Jeroen Kransen
I'm struggling with the types in an Akka Flow using Java 7. This is what I am setting up: Function converteerOrganisatie = ...; Flow converteerOrganisatieFlow = Flow.of(MA822.class).map(converteerOrganisatie); This is the error I'm getting:

Re: [akka-user] [akka-streams] Java7 - output type for map

2015-09-04 Thread Konrad Malawski
Hmm, weird - this should just work (sanity checked a similar example locally). Can you paste a full snippet of code that showcases the problem? I don't see how it shouldn't work here. Are you sure you're importing the right Function interface? --  Cheers, Konrad `ktoso` Malawski Akka @ Typesafe

Re: [akka-user] [akka-streams] Java7 - output type for map

2015-09-04 Thread Jeroen Kransen
Sorry, it was indeed a wrong Function. With akka.japi.function.Function it works fine! Op vrijdag 4 september 2015 18:19:51 UTC+2 schreef Konrad Malawski: > > Hmm, weird - this should just work (sanity checked a similar example > locally). > Can you paste a full snippet of code that showcases

Re: [akka-user] [akka-streams] Java7 - output type for map

2015-09-04 Thread Konrad Malawski
Cool  happy hakking! On Sep 4, 2015 19:36, "Jeroen Kransen" wrote: > Sorry, it was indeed a wrong Function. With akka.japi.function.Function it > works fine! > > Op vrijdag 4 september 2015 18:19:51 UTC+2 schreef Konrad Malawski: >> >> Hmm, weird - this should just work