Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » IsInstance function failed
IsInstance function failed [message #1695514] Fri, 15 May 2015 14:30
Ramon Barakat is currently offline Ramon BarakatFriend
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 ?



Previous Topic:Papyrus search issues
Next Topic:Class diagram - intanceSpecification - Superclass
Goto Forum:
  


Current Time: Thu Apr 25 23:14:13 GMT 2024

Powered by FUDForum. Page generated in 0.04297 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top