Overloads warnings overly agressive?

2013-09-24 Thread Paul Sandoz
Hi, There is a new warning about overloads on methods with functional interfaces, but it appears to be over-agressive as Doug pointed out to me off-list. If i enable this when compiling tl (make JAVAC_WARNINGS:=-Xlint:overloads) then one can observe warnings such as on the primitive

Re: Overloads warnings overly agressive?

2013-09-24 Thread Henry Jen
Hi, I had reported this issue with attached test with behavior I observed, Brian and me agreed that SuppressWarnings on either one as in this test case should be sufficient. Cheers, Henry On Sep 24, 2013, at 10:14 AM, Paul Sandoz paul.san...@oracle.com wrote: Hi, There is a new

Re: Overloads warnings overly agressive?

2013-09-24 Thread Henry Jen
Forgot that attachment is not allowed, the test code is following, public class TestOverload { interface FooT { void m(T arg); } interface IntFoo { void m(int arg); } interface BarT { void bar(FooT arg); } interface IntBar