Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354542 - Duplicate reflection helper registrations generated
Summary: Duplicate reflection helper registrations generated
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Tools (show other bugs)
Version: 2.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 15:23 EDT by Kenn Hussey CLA
Modified: 2011-11-22 05:26 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.