[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [gmf-dev] Failing JUnits in the GMF build...
|
Hi!
BTW, it seems like any "incorrectly written"
provider (throwing exception from "provides()" operation) plugged into the IBM
runtime will block all the rest of functionality. It sounds like a stability
problem of a framework.
I know that there are two ways to handle
this situation: one is just to throw an exception (as it is now) - as a
result one incorrect provider will block all operations of this type. Another is
to catch this exception in a framework, log it and continue working with another
providers. In other words, second approach means: try
to continue working even if one provider was broken.
So, my question is: will we continue
working with first type of providers querying strategy or is it planned to
support second "safe" one?
______________
Alex Shatalin
The JUnits failing in the
overnight build are due to an NPE in an EditPart provider class -->
java.lang.NullPointerException at
samplemodel.editor.VisualIDRegistry.getDiagramVisualID(VisualIDRegistry.java:26) at
samplemodel.edit.parts.EditPartFactoryImpl.createDiagramEditPart(EditPartFactoryImpl.java:67) at
samplemodel.edit.parts.EditPartFactoryImpl.createEditPart(EditPartFactoryImpl.java:47) at
samplemodel.providers.SampleModelEditPartProvider.createEditPart(SampleModelEditPartProvider.java:83) at
samplemodel.providers.SampleModelEditPartProvider.provides(SampleModelEditPartProvider.java:124) at
org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService$ProviderDescriptor.provides(EditPartService.java:95) |
The diagram core runtime team owns the test, but we
don't own the class that is causing the NPE. Can whoever owns the
SampleModelEditPartProvider take at look at this failure?
Thanks,
Steve.
________________________________________
Steven R. Shaw
Rational
Modeling Platform Diagram Layer Lead
Rational Software | IBM Software
Group
770 Palladium Drive, Kanata, ON, Canada, K2V 1C8
tel:
613.591.7979
steveshaw@xxxxxxxxxx