This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes Problem with assert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with assert" Watch "Problem with assert" New topic

Problem with assert

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am trying to compile an application and i am always getting this error.

"assert cannot be resolved to a type"

what can be the problem
Anton Uwe
Ranch Hand

Joined: Jan 10, 2007
Posts: 122
Perhaps you are compiling with a java 1.3 compiler or with a newer one with option -source 1.3?
I agree. Here's the link:
subject: Problem with assert
It's not a secret anymore!