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 262612 - @Target is not required for @Qualifier
Summary: @Target is not required for @Qualifier
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 09:17 UTC by terje7601
Modified: 2016-06-29 09:17 UTC (History)
0 users

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 terje7601 2016-06-29 09:17:39 UTC
The following is a valid @Qualifier (see http://docs.oracle.com/javaee/7/api/javax/inject/Qualifier.html ). However, NetBeans complains that it doesn't have a @Target annotation. I found a related issue 244172, and the fix seems simple: check in http://hg.netbeans.org/web-main/file/tip/web.beans/src/org/netbeans/modules/web/beans/analysis/analyzer/annotation/QualifierVerifier.java#l80 if targetTypes.isEmpty() and if so, return true



@Qualifier
@Retention(RUNTIME)
@Documented
public @interface Regional {

}



Product Version: NetBeans IDE Dev (Build 201606240002)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)