IsInstance function failed [message #1695514] |
Fri, 15 May 2015 14:30 |
Ramon Barakat Messages: 4 Registered: December 2014 |
Junior Member |
|
|
Hey everybody,
we got some unexpected behavior of the isInstance() function.
In:
if (collectionElement != null && (QueryUtils.getReturnType(query).isInstance(collectionElement))) {
throw new DerivedTypedElementTypeCheckingException(
"Wrong result collection element type: " + collectionElement.getClass().getName()
+ "(" + QueryUtils.getReturnType(query).getName() + " is expected) "
+ " on " + QueryUtils.getQueryDescription(query)); //$NON-NLS-1$
}
we get:
!ENTRY org.eclipse.papyrus.emf.facet.custom.ui 4 0 2015-05-13 14:45:05.882
!MESSAGE org.eclipse.papyrus.emf.facet.efacet.core.internal.exception.DerivedTypedElementTypeCheckingException: Wrong result collection element type: EditorConfigurationImpl(EditorConfiguration is expected) on [Query eClass:JavaQuery defined on FacetReferenceImpl of type 'EditorConfiguration' named: 'EditConfigs']
But the class EditorConfigurationImpl implements the interface EditorConfiguration so isInstance() should be true.
Any idea whats happen here ?
|
|
|
Powered by
FUDForum. Page generated in 0.04297 seconds