[Solved] Java 8 generic type conversion fails where as it was passing with java 7
As part of solution choose any of the following. Break method call and argument pass in two calls – Integer i = getInteger(); print(i); Or Call print method with Typed argument – print(Main.<Integer>getInteger()); I hope it will help. 10 solved Java 8 generic type conversion fails where as it was passing with java 7