Open dragos opened 13 years ago
Maybe suppress warnings when the closure is passed to a specialized method. More generally, for an application where the method is specialized and the argument is a a (matching) specialized instance, ignore generic forwarders.
I think the problem must be detected at runtime... One silly way is simply add a logging with stack trace in constructors of every primitive wrapper classes. Because is is not so easy to track whick methods of specialized classes will really be called. Correct me, if I'm wrong.
Function literals may confuse the plugin. For instance,
is translated to
but, if
map
is specialized, no boxing will occur (theapply(Object)
overload is never called).