Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assert doesn't work

 
Dennis Callag
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What portal server/version are you running?
 
Dennis Callag
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss Portal 2.4.0
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic