Summary: | assert(false); can be compiled and run, but no AssertFailedException appears during execution | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | jenny li <jjli> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | darin.eclipse, jjli, Olivier_Thomann, srikanth_sankaran |
Version: | 3.3.2 | ||
Target Milestone: | 3.6 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
jenny li
2009-02-12 16:02:46 EST
Moving to JDT Are you running with the VM argument "-ea" ? Assertion are disabled by default. The JUnit assertion check would be assertTrue(false); When you are using an assert statement, you need to enable assertion at runtime. Closing as INVALID. -ea needs to be added as a VM argument as assertions are disabled by default. Verified for 3.6M5 |