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 232764 - Do not show "Unsatisfied dependency" warning for built-in CDI beans
Summary: Do not show "Unsatisfied dependency" warning for built-in CDI beans
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal with 5 votes (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 08:18 UTC by patrik.varga
Modified: 2016-07-07 08:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patrik.varga 2013-07-16 08:18:26 UTC
The "3.6. Additional built-in beans" chapter of the CDI 1.0 specification defines the following @Default built-in beans:

javax.transaction.UserTransaction
java.security.Principal
javax.validation.Validator
javax.validation.ValidatorFactory

However, NetBeans (7.3.1) shows warnings for injection points of these types in Java EE projects. For example if you have the following injection point:

@Inject javax.transaction.UserTransaction utx;

Then NetBeans will show the warning: "Unsatisfied dependency: no bean matches the injection point".

This is not expected behavior and the misleading warning message should not be shown.
Comment 1 patrik.varga 2013-11-11 14:56:47 UTC
The same issue holds with the CDI Event class, e.g.:

@Inject javax.enterprise.event.Event<String> event;
Comment 2 chrisjr 2014-04-29 12:52:26 UTC
Also fails to recognise Provider<> beans, although it works for Instance<> beans (curiously enough).

Event<> and BeanManager seem to be recognised correctly, as of NetBeans 8.0.
Comment 3 chrisjr 2015-01-06 15:39:05 UTC
Provider<?> beans are now working correctly, as of NetBeans 8.0.1.

I can also confirm that javax.validation.ValidatorFactory beans are now working in NetBeans 8.0.2. However, javax.validation.Validator beans are still showing as unsatisfied.
Comment 4 Martin Balin 2016-07-07 08:56:44 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