This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240556 - Wrong warning for CDI injection of a decorator's interface
Summary: Wrong warning for CDI injection of a decorator's interface
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 235148 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-16 16:36 UTC by Juergen.Zimmermann
Modified: 2016-07-07 08:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen.Zimmermann 2014-01-16 16:36:35 UTC
I'm having the interface BestellungService and 2 derived classes:
1) BestellungServiceImpl annotated with @Dependent
2) the abstract class abstract class BestellungServiceMitGeschenkverpackung annotated with @Decorator @Dependent

When I @Inject the interface BestellungService, then the editor shows the warning "Unresolved ambiguous dependency found as a result of typesafe resolution".

However, the resolution is NOT ambiguous. If the decorator is enabled in beans.xml, then the decorator class is injected, and otherwise the regular CDI-enabled bean class.
Comment 1 Sergey Petrov 2014-01-22 13:18:11 UTC
*** Bug 235148 has been marked as a duplicate of this bug. ***
Comment 2 Martin Balin 2016-07-07 08:52:59 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss