| Summary: | Duplicate reflection helper registrations generated | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Kenn Hussey <Kenn.Hussey> |
| Component: | Tools | Assignee: | 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: | |||
The fix is committed to CVS for 2.8. The changes are available in builds. |
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]; } });