Huston, we have a problem !
Neal Gafter
neal at gafter.com
Fri Feb 18 10:03:24 PST 2011
On Fri, Feb 18, 2011 at 9:10 AM, Florian Weimer <fweimer at bfk.de> wrote:
> Clearly, those a different at compile time. What I'm looking for is a
> case where both Foo and Foo<> result in legal expressions at compile
> time and produce different byte code.
>
*public class X<T> {
public X(T t) {}
public T get() { return null; }
public static int f(String s) { return 1; }
public static int f(Object o) { return 2; }
public static void main(String[] args)
{
System.out.println(f(new X<>("").get()));
System.out.println(f(new X("").get()));
}
}*
More information about the coin-dev
mailing list