logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: is getClass on generics dumb?: msg#00006

Subject: Re: is getClass on generics dumb?
On 9/4/06, Bill Pugh <pugh@xxxxxxxxxx> wrote:
The Java generics system is largely invisible at runtime.

ah, great.  that should keep you in business.

Thus, new HashSet<String>.getClass() gives exactly the same result
as HashSet.class, which is what should be used instead.

ok.  thanks for the help!

John


<Prev in Thread] Current Thread [Next in Thread>