Potential bug in PathmapManager.notifyChanged(Notification msg) [message #516611] |
Wed, 24 February 2010 10:08 |
Jan Mauersberger Messages: 120 Registered: July 2009 |
Senior Member |
|
|
Hi,
before I'm going to post a GMF bug I would like to verify this. In GMF
2.2.0 but also in 2.2.1 the method throws a ClassCastException in case
of an Notification.ADD_MANY notification. The code:
case Notification.ADD_MANY:
List resources = (List)msg.getNewValue();
if (resources == null)
break;
for (Iterator i = resources.iterator(); i.hasNext();) {
denormalize((Resource)msg.getNewValue(),
getResourceSet().getURIConverter());
}
break;
causes the exception because the new value in the event is a list of
resources, rather than a single resource. The issue is caused if
multipel resources are changed in a resource set in a single step like
resourceSet.getResources().addAll(resourceList);
Did anyone encounter a the same problem so far?
Jan
|
|
|
Powered by
FUDForum. Page generated in 0.02876 seconds