Community
Participate
Working Groups
Originally reported at news group, ["GMF diagram generator chocking on colors", 2006-09-08], news:edrnq7$jin$1@utils.eclipse.org. In case if background/foreground colors are set for PolygonDecoration, containing connection can not be generated due to exception in generator. Attached is the patch for the gmfgraph tests that allows to reproduce the issue. Expected: Tests should pass
Created attachment 49719 [details] Patch for gmfgraph.tests that demonstrates the issue Changed test now fails due to compilation errors.
org.eclipse.emf.codegen.jet.JETException: InvocationTargetException at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:394) at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:367) at org.eclipse.gmf.internal.codegen.dispatch.DispatcherImpl.dispatch(DispatcherImpl.java:53) at <skipped> Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:386) ... 98 more Caused by: java.lang.NullPointerException at org.eclipse.gmf.graphdef.codegen.templates.FigureAttrGenerator.generate(FigureAttrGenerator.java:72) ... 103 more
Created attachment 49737 [details] Fixes the subj Includes previously attached test, thus obsoleting the previous patch.
Created attachment 50167 [details] Corrected tests for the (obsolete) fix It was finally decided, that it is correct failure, because it is reproducible only when decoreation does not have required name attribute. Attached patch adds the correctly setup decoration with colors into the test fixture.
Patch with test reviewed and committed.
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug