Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354542

Summary: Duplicate reflection helper registrations generated
Product: [Modeling] EMF Reporter: Kenn Hussey <Kenn.Hussey>
Component: ToolsAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Kenn Hussey CLA 2011-08-11 15:23:20 EDT
Depending on the source model, the code that gets generated (in the package implementation) to initialize reflection helpers when targeting the GWT runtime platform can contain duplicate registrations, e.g.,

		Reflect.register(String.class, new Reflect.Helper() {
			public boolean isInstance(Object instance) {
				return instance instanceof String;
			}

			public Object newArrayInstance(int size) {
				return new String[size];
			}
		});
		Reflect.register(String.class, new Reflect.Helper() {
			public boolean isInstance(Object instance) {
				return instance instanceof String;
			}

			public Object newArrayInstance(int size) {
				return new String[size];
			}
		});
Comment 1 Ed Merks CLA 2011-10-27 12:44:28 EDT
The fix is committed to CVS for 2.8.
Comment 2 Ed Merks CLA 2011-11-22 05:26:41 EST
The changes are available in builds.