Re: Type system in Java is bizarre... Help!

2015-08-26 Thread Niclas Hedhman
Well, I don't know if it will help... But, what I finally managed was to change the visibleXyz() to return Stream> and then get all other parts converging on that. TypeLookUp class is solved. If we later can tighten the in each method to return the specific type, then that would be great, other

Re: Type system in Java is bizarre... Help!

2015-08-26 Thread Paul Merlin
Niclas Hedhman a écrit : > Gang and especially the Type System experts > > I am struggling to get the TypeLookup class converted to Stream API, and it > is because the Java type system (or at least the one built into IntelliJ) > to behave strangely. IDEs that don't directly rely on javac (Ecli

Type system in Java is bizarre... Help!

2015-08-26 Thread Niclas Hedhman
Gang and especially the Type System experts I am struggling to get the TypeLookup class converted to Stream API, and it is because the Java type system (or at least the one built into IntelliJ) to behave strangely. For instance; I have the following method in ModuleInstance public Stream> vi