Summary: | Missing entry in local variable attribute | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.0.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Philipe Mulet
2004-06-29 10:27:28 EDT
we should generate sthg like: Local variable table: [pc: 6, pc: 9] local: i index: 1 type: I [pc: 0, pc: 18] local: args index: 0 type: [Ljava/lang/String; [pc: 10, pc: 18] local: i index: 1 type: I Similar issue with do-while statement. Similar issue for all control flow statements (including foreach). The following templates where missing #addDefinitelyAssignedVariables. if (mergedInitStateIndex != -1) { codeStream.removeNotDefinitelyAssignedVariables( currentScope, mergedInitStateIndex); codeStream.addDefinitelyAssignedVariables( currentScope, mergedInitStateIndex); } codeStream.recordPositionsFrom(pc, this.sourceStart); Could be backported to 3.0 maintenance stream. Fixed in 1.5 stream, added regression tests: ConformTest#test241-244 + ForeachStatementTest#test027. Backported to 3.0.x stream. Verified for 3.0.1 RC1 |