Bug 560466

Summary: DS Annotation needs to support special LoggerFactory support
Product: [Eclipse Project] PDE Reporter: Gunnar Wagenknecht <gunnar>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: alex.blewitt, julian.honnen, pnehrer, Vikas.Chandra
Version: 4.15   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: https://blog.osgi.org/2018/03/osgi-r7-highlights-declarative-services.html
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 551977    

Description Gunnar Wagenknecht CLA 2020-02-24 08:39:24 EST
The following is valid per OSGi DS spec:

@Component
public class ComponentImpl implements SomeService {

    @Reference(service = LoggerFactory.class)
    private Logger logger;

}

PDE's DS Annotation Support complains with: Service type LoggerFactory incompatible with field type Logger.

This case should be ignores, i.e. it's valid because DS will call LoggerFactory.getLogger to get the proper instance.
Comment 1 Gunnar Wagenknecht CLA 2020-02-24 08:45:15 EST
Oh wait a minute, looks like the DS Annotation support does not support the latests spec yet at all. Is this something that is planned?
Comment 2 Vikas Chandra CLA 2020-02-24 23:12:10 EST
Peter, can you please have a look at this issue. Thanks!
Comment 3 Vikas Chandra CLA 2020-03-31 04:53:19 EDT
Peter, any update here?
Comment 4 Eclipse Genie CLA 2023-03-10 10:37:43 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.