• Post Reply Bookmark Topic Watch Topic
  • New Topic

compile ignoring Generics  RSS feed

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we complie JAVA 1.5 (which has generics) source code to ignore generics. I have some dependencies which uses JDK 1.4.

Thanks,
Prashant
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way is to ignore the "unsafe operations" warnings. Of course that means you might be abandoning type-safety.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here it is in the blog
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!