While converting Java 8 access private member with lambda? from concrete format to generic format I found another limitation :
To issue a complete symbolic type descriptor, the compiler must also determine the return type. This is based on a cast on the method invocation expression, if there is one, or else Object if the invocation is an expression or else void if the invocation is a statement.
I am curious if there is a way to overcome this?
UPDATE: Working Example per Holger