Bug 357259 - [dom] AST#newArrayType(Type, int) should allow array type as argument
Summary: [dom] AST#newArrayType(Type, int) should allow array type as argument
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 3.8 M2   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 12:19 EDT by Markus Keller CLA
Modified: 2011-09-13 10:08 EDT (History)
3 users (show)

See Also:
Olivier_Thomann: review+


Attachments
Fix (3.43 KB, patch)
2011-09-09 12:19 EDT, Markus Keller CLA
no flags Details | Diff
Proposed fix + regression test (4.54 KB, patch)
2011-09-09 13:13 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2011-09-09 12:19:23 EDT
Created attachment 203074 [details]
Fix

HEAD

AST#newArrayType(Type, int) should allow an array type as argument. The current API is just inconvenient for no good reason.

The patch also removes bogus
     * <li>a cycle in would be created</li>
from Javadocs.
Comment 1 Markus Keller CLA 2011-09-09 12:33:01 EDT
OK for M2? I'd like to use this for bug 89432.
Comment 2 Olivier Thomann CLA 2011-09-09 12:47:04 EDT
Patch looks good. I didn't run the tests, but I will.
I would just replace:
	 * @param elementType the element type (can an array type)
with:
	 * @param elementType the element type (can be an array type)
Comment 3 Markus Keller CLA 2011-09-09 13:10:03 EDT
Released for 3.8M2, including the grammar fix.
Comment 4 Olivier Thomann CLA 2011-09-09 13:13:04 EDT
Created attachment 203079 [details]
Proposed fix + regression test

Fix the typo and add regression test.
Comment 5 Srikanth Sankaran CLA 2011-09-13 04:20:07 EDT
Verified for 3.8M2 via inspection of code and tests.
Comment 6 Markus Keller CLA 2011-09-13 09:32:27 EDT
The code has been committed to HEAD, but unfortunately, it has not been released into the build.
Comment 7 Olivier Thomann CLA 2011-09-13 09:52:07 EDT
The entry was missing in the buildnotes. I'll tag it for next I-build.
Comment 8 Olivier Thomann CLA 2011-09-13 10:08:05 EDT
Map file is updated for next build. Thanks Markus for letting us know.