Bug 88757

Summary: [API] SwitchStatement.statements() returns list of SwitchGroups
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Jim des Rivieres <jeem>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: philippe_mulet
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2005-03-22 10:41:03 EST
In latest, the statements() method returns a list of SwitchGroups, but
SwitchGroups doesn't exist.

	/**
	 * Returns the live ordered list of statements for this switch statement.
	 * Within this list, <code>SwitchCase</code> nodes mark the start of 
	 * the switch groups.
	 * 
	 * @return the live list of switch group nodes
	 *    (element type: <code>SwitchGroups</code>)
	 */ 
	public List statements() {
		return this.statements;
	}

Right now statements() returns a list of Statement.
This needs to be clarified for M6.
Comment 1 Jim des Rivieres CLA 2005-03-22 19:29:14 EST
Indeed, the spec is bogus (and has been since day 1). I've fixed in HEAD.
Comment 2 Jim des Rivieres CLA 2005-03-22 19:30:19 EST
Marking as fixed.
Comment 3 Olivier Thomann CLA 2005-03-30 18:51:30 EST
Verified in 20050330-0500