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 228386 - Wrong warning for CDI producers with InjectionPoint and/or Beanmanager as parameters
Summary: Wrong warning for CDI producers with InjectionPoint and/or Beanmanager as par...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-08 17:18 UTC by Michel Graciano
Modified: 2013-12-11 02:59 UTC (History)
1 user (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 Michel Graciano 2013-04-08 17:18:22 UTC
When I have methods as follow:

@Produces
public Logger produceLogger(InjectionPoint ip, BeanManager bm) {
    return Logger.getLogger(ip.getMember().getDeclaringClass().getName());
}

The 'ip' parameter is highlighted with the following warning 'No enabled eligible for injection bean are found' and the 'bm' has 'Unsatisfied dependency: no bean matches the injection point', but both works as expected in runtime.

This warnings looks odd to me, since this injections are built in and should not have this kind of warning AFAIK.
Comment 1 Sergey Petrov 2013-12-10 16:25:34 UTC
http://hg.netbeans.org/web-main/rev/301c60b13513
Comment 2 Quality Engineering 2013-12-11 02:59:30 UTC
Integrated into 'main-silver', will be available in build *201312110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/301c60b13513
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #228386 add predefined from this issue