Bug 88757 - [API] SwitchStatement.statements() returns list of SwitchGroups
Summary: [API] SwitchStatement.statements() returns list of SwitchGroups
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Jim des Rivieres CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 10:41 EST by Olivier Thomann CLA
Modified: 2005-03-30 18:51 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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