File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with assert" Watch "Problem with assert" New topic
Author

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: http://aspose.com/file-tools
 
subject: Problem with assert
 
Similar Threads
Assert syntax
i need to extrend TestCase in order to use asserts of junit right
Flow Control Query Refernce Cert Pal
Assert Question
Error in using "assert" in java program....