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 257741

Summary: Decorator and CDI Bean are notified as unresolved ambiguous depedency
Product: javaee Reporter: hhf
Component: CDIAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal Keywords: ERGONOMICS
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10   
URL: https://github.com/ocelotds/ocelot
Issue Type: DEFECT Exception Reporter:

Description hhf 2016-01-28 15:14:06 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_71
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.71-b15

Reproducibility: Happens every time

STEPS:
  * Open dialog Foo
  * Click on button "Click me"

ACTUAL:
  nothing happens

EXPECTED:
  message pops up

Create cdi Bean with cdi decorator and inject  the bean in other bean
Netbeans hint an unresolved ambiguous depedency.

example :
bean : 
https://github.com/ocelotds/ocelot/blob/master/ocelot-web/src/main/java/org/ocelotds/core/services/MessageToClientManager.java
decorator :
https://github.com/ocelotds/ocelot/blob/master/ocelot-web/src/main/java/org/ocelotds/core/services/MonitorDecorator.java

Injected location
https://github.com/ocelotds/ocelot/blob/master/ocelot-web/src/main/java/org/ocelotds/core/services/CallServiceManager.java

@Inject
private MessageToClientService messageToClientService;