-
Bug
-
Resolution: Done
-
Major
-
2.0.0.Alpha12
-
None
Given:
public interface MyInterface {}
and
public class Foo implements MyInterface {}
Trying to retrieve it from the Imported object from AddonRegistry:
Imported<MyInterface> imported = addonRegistry.getServices(MyInterface.class);
The following statements are observed:
- imported.get() returns instance of Foo
- imported.iterator().hasNext() returns false.
Since no @Exported is placed in MyInterface, I believe the first statement is a bug.