Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Potential bug in PathmapManager.notifyChanged(Notification msg)
Potential bug in PathmapManager.notifyChanged(Notification msg) [message #516611] Wed, 24 February 2010 10:08
Jan Mauersberger is currently offline Jan MauersbergerFriend
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
Previous Topic:Problem with Link Constraint (OCL)
Next Topic:Custom Actions/ Custom Behaviour
Goto Forum:
  


Current Time: Tue Mar 19 03:17:16 GMT 2024

Powered by FUDForum. Page generated in 0.01960 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top