Summary: | [compiler] dead bytecodes are generated inside conditional expressions | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | Flags: | Olivier_Thomann:
review+
|
||||
Version: | 3.3 | ||||||
Target Milestone: | 3.3 RC1 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2006-10-31 13:22:19 EST
Variation on same issue: public static void main(String[] args) { boolean a = true, b = false; if (!(a ? true : (b = true))) a = b; System.out.println("SUCCESS"); } Created attachment 65924 [details]
Proposed patch
Olivier - pls review the patch, and cast your vote Added BooleanTest#test039-042 +1 Released for 3.3RC1. Fixed Enabled regression test org.eclipse.jdt.core.tests.compiler.regression.StackMapAttributeTest#test023. This test now passes. Verified for 3.3 RC1 using I20070515-0010 |