[
https://issues.jboss.org/browse/FORGE-2039?page=com.atlassian.jira.plugin...
]
Jess Sightler edited comment on FORGE-2039 at 9/25/14 11:09 AM:
----------------------------------------------------------------
Without @Specializes, the Imported variable contains the following three entries:
Class name: org.duplicateservicetest.SampleServiceSubclass
Class name: org.duplicateservicetest.SampleServiceBase
Class name: org.duplicateservicetest.SampleServiceSubclass
With @Specializes in the subclass, it returns two entries:
Class name: org.duplicateservicetest.SampleServiceSubclass
Class name: org.duplicateservicetest.SampleServiceSubclass
Neither of these outcomes appear to be correct to me.
was (Author: jsightler):
Without @Specializes, the Imported variable contains the following three entries:
Class name: org.duplicateservicetest.SampleServiceSubclass
Class name: org.duplicateservicetest.SampleServiceBase
Class name: org.duplicateservicetest.SampleServiceSubclass
With @Specializes in the subclass, it returns two entries:
Class name: org.duplicateservicetest.SampleServiceSubclass
Class name: org.duplicateservicetest.SampleServiceSubclass
Neither of these outcomes appears to be correct to me.
@Inject Imported includes duplicate services
--------------------------------------------
Key: FORGE-2039
URL:
https://issues.jboss.org/browse/FORGE-2039
Project: Forge
Issue Type: Feature Request
Reporter: Jess Sightler
Attachments: duplicateservicetest.zip
Interface: SampleInterface
Implementations:
SampleServiceBase
SampleServiceSubclass (subclass of SampleServiceBase)
@Inject
private Imported<SampleInterface> interfaces;
This injected list will contain two copies of SampleServiceSubclass.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)