Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340375

Summary: [1.7] Merge TryStatementWithResources into TryStatement
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, deepakazad, jarthana, Olivier_Thomann, raksha.vasisht
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 340365, 340372    
Attachments:
Description Flags
Proposed fix none

Description Markus Keller CLA 2011-03-17 17:10:07 EDT
BETA_JAVA7

Looking closer at TryStatementWithResources, I think we shouldn't add this as a new node at all.

It would be better to add the "resources" property to the existing TryStatement, similar to how [ < TypeParameter { , TypeParameter } > ] has been added to TypeDeclaration.
Comment 1 Olivier Thomann CLA 2011-03-17 22:59:30 EDT
Created attachment 191481 [details]
Proposed fix

This also contains the fix for bug 340365.
Comment 2 Olivier Thomann CLA 2011-03-18 10:48:23 EDT
Released for 3.7M7 in BETA_JAVA7 branch.
Comment 3 Jay Arthanareeswaran CLA 2011-06-29 07:38:06 EDT
Verified.