aspose file tools*
The moose likes Beginning Java and the fly likes Assertions : have I gone nuts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Assertions : have I gone nuts?" Watch "Assertions : have I gone nuts?" New topic
Author

Assertions : have I gone nuts?

KR Campbell
Ranch Hand

Joined: Mar 26, 2004
Posts: 124
Has my mental freezer been unplugged overnight? :


At the command prompt with version 1.4.2:


Output: " As of release 1.4, assert is a keyword and may not be used as an identifier...."

Ken
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
It might solve your problem to enable assertions on the command line. I found this info on

http://www.javaemerald.com/javamaster/assert.html

so maybe give it a try.
KR Campbell
Ranch Hand

Joined: Mar 26, 2004
Posts: 124
Thanks for the reply Rachel, I think that only matters at runtime. I found my mistake. I somehow managed to get my assertion outside my method body. Compiler didn't like it. Mental powercut!

Regards,
Ken
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assertions : have I gone nuts?