Re: Java Maps and Type Information

2016-03-02 Thread Aljoscha Krettek
I’m afraid so, yes. I also tried out your example and it works if I add a .returns() after the .map() (as you did). Somehow the TypeExtractor seems to be acting up. > On 02 Mar 2016, at 11:12, Simone Robutti wrote: > > >Error:(43, 87) java: no suitable method

Re: Java Maps and Type Information

2016-03-02 Thread Simone Robutti
Ok, I made it work but there's still an issue. I used .returns(java.util.Map.class) after the "map" call and it works with this simple function but it doesn't compile with my CustomMapFunction that extends MapFunction. It gives a compilation error on the .returns() call. This is the case only if

Re: Java Maps and Type Information

2016-03-01 Thread Simone Robutti
I tried to simplify it to the bones but I'm actually defining a custom MapFunction,java.util.Map> that even with a simple identity function fails at runtime giving me the following error: >Exception in thread "main"

Re: Java Maps and Type Information

2016-03-01 Thread Aljoscha Krettek
Hi, what kind of program are you writing? I just wrote a quick example using the DataStream API where I’m using Map> as the output type of one of my MapFunctions. Cheers, Aljoscha > On 01 Mar 2016, at 16:33, Simone Robutti wrote: >