pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clint Gilbert <clint_gilb...@hms.harvard.edu>
Subject Re: why ListButton.getListData returns List<?> ?
Date Tue, 25 Jan 2011 20:57:36 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg Brown wrote:
>> Of course, this has the same problem of errors only showing up at
>> runtime, and in a depressingly high number of cases, you still need to
>> specify the <T> using Java's weird syntax - listView.<Foo>getList().
> 
> I had never even seen that syntax until recently. It IS really weird.
> 
> G

It's inconsistent with how type params are supplied for classes, and it
doesn't play nice with static imports:

import static Foo.bar;

Foo.<T>bar(); //ok

<T>bar(); //not ok.

I'm guessing backward compatibility is the culprit, because it usually
is. :(  Sorry for the digression!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAk0/OUAACgkQ5IyIbnMUeTuPIgCfQfYNU/k9gGMIP3pBjMbHv1Gi
l8UAn2Qow1d4gcvvNbEYE22o4sMARAwn
=UsNB
-----END PGP SIGNATURE-----

Mime
View raw message