• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Type Safety: Erased Type?

 
Ranch Hand
Posts: 231
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

Have a small question regarding generics...

The framework that I've been working with is compiled and closed, hence, I am unable to see the Java source.

Here's some code:



In Eclipse 3.2, I am getting this warning under the Problems view:



Like earlier stated, the affiliate reference is part of a closed library which was written in JDK 1.4.

Is there a way to alleviate / remove this warning from appearing in Eclipse (am not asking to set Eclipse to ignore it)?

After googling this, I replaced the above code with:



And now the warning in Eclipse is gone! Is this the right solution?

The problem is that I just want to use Set not HashSet...

Sincerely,

James
[ January 24, 2007: Message edited by: James Dekker ]
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the type of "affiliate"?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic