| Summary: | [1.8][compiler] Verify error with code allocating multidimensional array. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Srikanth Sankaran <srikanth_sankaran> | ||||
| Component: | Core | Assignee: | Andrew Clement <aclement> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jarthana, srikanth_sankaran | ||||
| Version: | 4.3 | Flags: | srikanth_sankaran:
review+
|
||||
| Target Milestone: | BETA J8 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 409235 | ||||||
| Attachments: |
|
||||||
Andy, thanks for following up. Created attachment 231752 [details]
Patch that adds testcase and implements fix
The problem here was a switch in the typo anno generation code to using declared dimensions on the call to multianewarray rather than the explicitly specified dimensions. Part of the code gen needs the explicit information whilst the type annotation generation code needs the declared dimensions. The fix is to pass both.
Patch looks good. Andy please sign off. Jay, thanks for releasing and resolving this one too. This contribution complies with http://www.eclipse.org/legal/CoO.php Released via: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA8&id=fa4cf904b1d5690e02fc0246dbc8bc14a58e5d04 *** Bug 415312 has been marked as a duplicate of this bug. *** |
BETA_JAVA8: The following program triggers a verify error when run (operand stack underflow) // --- public class X { public static void main(String[] args) { X [][][] x = new X[10][10][]; } }