According to the JLS, type variables are erased when calculating lub.
This is not correct.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=129261#c20 and bug 6557661.
Comments
EVALUATION
6488666 was already the spec RFE for passing type arguments' bounds to the inference process and using such bounds in the lub calculation.