Community
Participate
Working Groups
The invocation of getLinkingService().getLinkedObjects within LazyLinkingResource.getEObject() does not appear to support ambiguities completely. getEObject() may return a list of ambiguous alternatives but the subsequent testing then throws an untidy IllegalStateException, when it would be much more user friendly to return some form of "Ambiguous reference" diagnostic. Is there a way to workaround this limitation other than my current approach just returns an empty list and so reports an "Unresolved ..." whenever the true problem is "Multiply resolved ...."
Workaround: Attach the multiple ambiguities as an adapter on the context object. Return an empty list from getLinkedObjects. Detect the adapter in an UnresolvedProxyMessageProvider.