• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

assert keyword

 
Don Bosco
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't I see assert keyword in the list provided my Sun??
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point. I have given Sun a gentle poke!
-Barry
 
Don Bosco
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to run a program using assert as a variable name. Giving me errors even if the assertions are disabled. So I think Sun should really need to update his list.
 
Yan Bai
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Don Bosco:
I tried to run a program using assert as a variable name. Giving me errors even if the assertions are disabled. So I think Sun should really need to update his list.

error or warning? I got warnings but the program ran well.
 
Don Bosco
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm Sorry. That was a warning.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic