Bug 560466 - DS Annotation needs to support special LoggerFactory support
Summary: DS Annotation needs to support special LoggerFactory support
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.15   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL: https://blog.osgi.org/2018/03/osgi-r7...
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 551977
  Show dependency tree
 
Reported: 2020-02-24 08:39 EST by Gunnar Wagenknecht CLA
Modified: 2023-03-10 10:37 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.