Community
Participate
Working Groups
Build ID: M20080221-1800 Steps To Reproduce: 1.Add "assert(false);" anywhere in a program. 2.The code with this line is compiled properly without an error or warning. 3.Execution of this line of code using "run junit" doesn't throw AssertFailedException. More information: "assert" was highlighted as a keyword during code editing, but it seems to be treated as Junit assert during execution. "assert(false);" shouldn't pass compilation at the first place.
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