Summary: | VerifyError with assert when optimizing out unused local variables | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 3.0 M1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Philipe Mulet
2003-05-12 11:21:30 EDT
Offending line is: 13 iload 255 In fact the whole block: 9 new #48 java.lang.AssertionError 12 dup 13 iload 255 15 invokespecial #51 <Constructor java.lang.AssertionError(int arg)> 18 athrow is unreachable. If the condition of the assert statement is inlined to true we don't need to generate the assertion error because it cannot happen. Indeed. Fixed by optimizing out the entire chunk when condition is inlined to true. Fixed. Fixed Verified. |