|
Re: [CDO] Issue with closing view [message #1853069 is a reply to message #1853064] |
Thu, 16 June 2022 15:12 |
|
Ewoud Werkman wrote on Thu, 16 June 2022 10:56Hi!
After I open a view, retrieve a resource and then close the view I get the following exception:
[DEBUG] Problem while deactivating View 81 [closed]
java.lang.IllegalArgumentException: The feature 'resourceSet' is not a valid feature
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEObjectImpl.java:1101)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1054)
Have a look at this method in BasicEObjectImpl:
public Object eGet(EStructuralFeature eFeature, boolean resolve, boolean coreType)
{
int featureID = eDerivedStructuralFeatureID(eFeature);
if (featureID >= 0)
{
return eGet(featureID, resolve, coreType);
}
else
{
return eOpenGet(eFeature, resolve);
}
}
I've run thousands of test cases but I did never hit a breakpoint on the call to BasicEObjectImpl.eOpenGet() and I have no idea why eDerivedStructuralFeatureID(eFeature) would return a value < 0 (probably -1). I fear you have to set a breakpoint there yourself and find it out. Or provide me with an executable test case that reproduces the problem.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.01424 seconds