wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Assert doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Assert doesn Watch "Assert doesn New topic
Author

Assert doesn't work

Dennis Callag
Greenhorn

Joined: Feb 02, 2007
Posts: 7
Hello,

I've tried almost everything to enable 'assert' in my portlet - but my portlet ignores it completely (although the file size increases when using assert statement in the code). The variable MAVEN_OPTS=-ea is also set.

Even a simple statement like 'assert false;' doesn't lead to an assertion.

Could anyone help me or give me a hint?

Thanks!
Ryan Wilson
Ranch Hand

Joined: Apr 16, 2003
Posts: 65
What portal server/version are you running?
Dennis Callag
Greenhorn

Joined: Feb 02, 2007
Posts: 7
JBoss Portal 2.4.0
 
 
subject: Assert doesn't work