File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Assert doesn't work

Dennis Callag

Joined: Feb 02, 2007
Posts: 7

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?

Ryan Wilson
Ranch Hand

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

Joined: Feb 02, 2007
Posts: 7
JBoss Portal 2.4.0
I agree. Here's the link:
subject: Assert doesn't work
It's not a secret anymore!