Community
Participate
Working Groups
(Fup on bug 103485) While bug 103485 is fixed with 3.2 M1 (we definitely have an error diagnostic now), the message is a bit difficult to understand, since it does not cite the effective types of the arguments, but complex types yield by the validation and capture algorithm, which relationship to the arguments is not easy to grasp. Philippe's suggestion for an improved message: Bound mismatch: The generic method isGreater(T, T) of type Hover is not applicable for the arguments (Integer, Double) since the type Number&Comparable<?> is not a valid substitute for the bounded parameter <T extends Comparable<T>> (maybe even without the since... part of it)
I would prefer the full message. When I as a user have errors because the compiler could not infer a good type, then I'm in trouble anyway. In that situation, the additional information about the inferred type could help me find out why it didn't work.
I'd definitely prefer to see the full information (as Markus says, to help in diagnosing the cause), assuming that the message identifies the actual argument types as proposed.
Glad to see these responses. Will keep detailed message. Releasing for 3.1.1 (and 3.2).
Updated various GenericTypeTest cases where the message was less than optimal.
Verified in I20050921-0010 for 3.2M2
Verified using M20050923-1430 for 3.1.1