| Summary: | AbstractEditPart.EditPolicyIterator is deprecated, causes problems | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Richard Kulp <richkulp> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Richard Kulp
Rich, the type EditPolicyIterator is not deprecated, only its constructor is. The method (getEditPolicyIterator) is not deprecated either. Can you post the snippet of code you are running that is causing the deprecation warnings? Assuming what's in my workspace is what's actually relased. EditPolicyIterator itr = getEditPolicyIterator();
while (itr.hasNext())
itr.next();
I get the deprecated because I need to have a variable of type EditPolicyIterator, which is deprecated. I can't walk the iterator without having the variable.
This is what is in GEF 3.2M4:
/**
* Iterates over a <code>List</code> of EditPolcies, skipping any <code>null</code> values
* encountered.
* @deprecated access to this type is unnecessary; see getEditPolicyIterator()
*/
protected static class EditPolicyIterator {
private Object list[];
So you see here the iterator class is deprecated, not just the constructor. Maybe it was changed post-M4?
The deprecation tag is not in HEAD, so you won't see this warning in M5. |