Scott Gray wrote:
> That looks like a PITA, do we have to include <String, Object> on all toMap
> calls now?

No.

==
Map context = UtilMisc.toMap(....);
dispatcher.runSync(serviceName, context);
==

It's only when you have it inline that it is a problem.  javac is not
currently smart enough when it comes to type-inference; I've discussed
this with the openjdk people, and they confirmed it.

If any part of the line uses generics, then javac attempts to make all
parts use it.  It javac applied type-erasure to the return of toMap,
*and* to the call to runSync, then it would be able to find a matching
method to call.

Reply via email to