File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Assert doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply 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: 62
What portal server/version are you running?
Dennis Callag
Greenhorn

Joined: Feb 02, 2007
Posts: 7
JBoss Portal 2.4.0
 
IntelliJ Java IDE
 
subject: Assert doesn't work
 
Threads others viewed
AssertionError
Good Qn on Unreachable Code
assert
assert keydword usage.
nested portlets

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture