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 252097

Summary: Unrelated change triggers 'unchecked' error hint
Product: java Reporter: everflux <everflux>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: wrong warning displayed from unrelated change

Description everflux 2015-04-26 13:09:25 UTC
Created attachment 153394 [details]
wrong warning displayed from unrelated change

Product Version: NetBeans IDE Dev (Build 201504230001)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.19.0-15-generic running on amd64; UTF-8; en_US (nb)

I have java code where I copy-paste an identifier. After pasting an 'unchecked' warning is displayed although I have an annotation
@SuppressWarnings("unchecked")
present.
The warning disappears after saving the file.

Expected behaviour: The hint should not be displayed.

I have created a screen recording to illustrate the problem.
Comment 1 Svata Dedic 2015-09-25 12:46:04 UTC
COuld not reproduce; I see the warning all the time if standard javac warning hints are enabled.