| Summary: | ArrayIndexOutOfBoundsException working with Dynamic Features | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Andres Alvarez Mattos <aamattos> |
| Component: | Core | Assignee: | Ed Merks <Ed.Merks> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Andres Alvarez Mattos
You can't use dynamic delegation when extending a statically generated base class. With Reflective Feature Delegation I don't have this problem. Can I asume that when extending a statically generated base class I should work with "Reflective" mode ? Yes, I was going to mention that I wasn't even sure if reflective works. But dynamic is definitely optimized to make assumptions that everything is fully dynamic. I.e., look at the extra overhead of the other version of eDynamicGet.
public Object eDynamicGet(int featureID, boolean resolve, boolean coreType)
{
return eDynamicGet(featureID - eStaticFeatureCount(), eClass().getEStructuralFeature(featureID), resolve, coreType);
}
It has to do more work just to call a method that could be more efficiently called directly.
I'm not sure the value of using either dynamic or reflective when the base class is neither...
|