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 - Unrelated change triggers 'unchecked' error hint
Summary: Unrelated change triggers 'unchecked' error hint
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-26 13:09 UTC by everflux
Modified: 2015-09-25 12:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wrong warning displayed from unrelated change (809.95 KB, video/webm)
2015-04-26 13:09 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
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.