Replies: 4 comments 9 replies
-
Does declaring a friend help? |
Beta Was this translation helpful? Give feedback.
-
IIRC (I think I faced similar questioning a dozen years ago) if the interface is introduced in the same version as the implementation and both are in same bundles, then PDE won't complain. |
Beta Was this translation helpful? Give feedback.
-
I think instead of relying on such "hacks" like noimplement - the interface should become "sealed" one thus explicitly allowing only the implementors the project allows. |
Beta Was this translation helpful? Give feedback.
-
I think the bug is here: Specifically the comment says:
So the check is testing if some API thing implements the restricted interface and is leaking that to clients. But this thing is marked Does that seem like the correct fix? |
Beta Was this translation helpful? Give feedback.
-
PDE has an implementation of
IModelChangedEvent
that is implemented asModelChangedEvent
... as the interface is marked with@noimplement
API tools complain.So my question is how one should ever "legally" implement such an interface, as of course there must be an implementation to make it useful. Or is the only way to have suppress that warning?
Beta Was this translation helpful? Give feedback.
All reactions