This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 48504

Summary: Add assert() support to project settings
Product: java Reporter: _ gtzabari <gtzabari>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker Keywords: UI
Priority: P4    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

Description _ gtzabari 2004-09-06 05:21:23 UTC
SOURCES | Generate Debugging Info does not include
enabling asserts but there is no indication of
this anywhere. Either indicate this somewhere or
add another checkbox for enabling asserts.
Comment 1 _ gtzabari 2004-09-06 05:23:23 UTC
Uh, silly me. Asserts are always compiled but only enabled/disabled at
runtime. What I meant to say is that we should add assert support for
running options.
Comment 2 David Konecny 2004-09-06 08:39:13 UTC
Type "-ea" to VM Options field in Running Project panel.

*** This issue has been marked as a duplicate of 43194 ***
Comment 3 _ gtzabari 2004-09-06 19:03:21 UTC

I'm reopening this issue because the point was a usability issue, not
the technical ability to add "-ea". The current UI is confusing
because users may assume that "Generate Debugging Info" somehow means
asserts are on. It isn't really clear what is going on. Unless you
have an explicit option for asserts under "Running" users might
confuse the two as I have.
Comment 4 Jesse Glick 2004-09-07 18:26:19 UTC
No plans to touch it.