• Post Reply Bookmark Topic Watch Topic
  • New Topic

Recompile with -Xlint:unchecked for details.  RSS feed

 
matthew reid
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I keep getting this RealEstateGuiNew.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
when I compile. it still runs fine but I don't know what is causing this. I tried asking the teacher about this but he just ignored me. thanks in advance.

Gui



Property Class


SaleOffer Class


PurchaseOffer Class



 
Swastik Dey
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not an error.  It's a warning, you might be using collections without type specifier.
 
Tim Moores
Saloon Keeper
Posts: 4035
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you compile with that flag, it will tell you details about each instance of the problem, especially the exact line number (what you posted is really too much to ask people to go through and analyze).

What kind of teacher ignores students' questions?
 
matthew reid
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so can anyone help me with recompiling with -Xlint, i tried googling it but i didnt have any success
 
Tim Moores
Saloon Keeper
Posts: 4035
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try something like "Java -Xlint:unchecked xyz.java"
 
matthew reid
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the help i found the problem. when i tried javac  <filename> -xlint nothing would happen. found out system path wasnt pointing to the correct directory with the javac.exe file in it.

i was missing <String> at the JComboBox
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now that's a nice catch for Lint. It is an updated version of an old C program for finding bits of fluff and other rubbish clogging up your program, lint being the fluffy stuff which you have to clean from cotton gins.
 
Dave Tolls
Ranch Foreman
Posts: 3068
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:... lint being the fluffy stuff which you have to clean from cotton gins.


... or belly buttons.

(sorry!)
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave Tolls wrote:... or belly buttons.

(sorry!)
Sounds like a candidate for the MD forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!