8175794: Type inference regression after JDK-8078093Reviewed-by: mcimadamoreContributed-by: maurizio.cimadamore@oracle.com, vicente.romero@oracle.com