
I am trying to understand why the compiler is unable to resolve the bar method call. I would expect bar(Xyz::new) to always select bar(Supplier) as bar(T extends Xyz) can never match due to the upper bound on Xyz.
public <T extends Xyz> void foo(T s) {}
public <T extends Xyz> void bar(T s) {}
pub...