File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Sep 16, 2008
Nov 25, 2008 22:13:00
When I try to run generics + legacy code, I get this warning:
Recompile with -Xlint:unchecked for details.
How do i recompile it??
Joined: Aug 05, 2005
Nov 26, 2008 02:46:00
The same way as you compiled it the first time but add -Xlint:unchecked as an extra option.
Joined: Oct 27, 2005
Nov 26, 2008 03:42:00
The warning doesn't mean you
recompile it. It's just a hint that if you recompile with these options, you see why this warning is being shown. Since you're using legacy code it's probably something with raw types.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
Class and generics
Problem with Generics
having trouble understanding generics
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015