Summary: | [compiler] Dead code detection should ignore trivial case for ternary if operator | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Peter Becker <peter> | ||||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | enhancement | ||||||||
Priority: | P3 | CC: | Olivier_Thomann, srikanth_sankaran | ||||||
Version: | 3.5 | ||||||||
Target Milestone: | 3.6 M1 | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Peter Becker
2009-07-07 23:41:55 EDT
If we support the trivial if as a special case, we should also support the conditional expression. Created attachment 141659 [details]
Proposed fix
I'll add regression test for this.
Created attachment 141670 [details]
Proposed fix + updated regression test
I updated the test org.eclipse.jdt.core.tests.compiler.regression.CastTest#test036
Released for 3.6M1. Updated existing regression test. Verified for 3.6M1 using build I20090802-2000 |