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 241275 - Editor ignores @SuppressWarnings("deprecation")
Summary: Editor ignores @SuppressWarnings("deprecation")
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-01 18:20 UTC by _ gtzabari
Modified: 2016-07-07 07:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
testcase (6.65 KB, application/octet-stream)
2014-02-01 18:20 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2014-02-01 18:20:10 UTC
Created attachment 144680 [details]
testcase

Product Version: NetBeans IDE Dev (Build 201401270001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b66
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b124
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

This issue has come up no less than 6 times in Netbeans' history and it's back yet again, so before I continue might I suggest adding a unit test to prevent this failure from returning in the future? :)

Repro steps:

1. Open attached testcase.
2. Open MyImplementation.java
3. Notice that method flagged with warning in spite of @SuppressWarnings("deprecation")
Comment 1 Jan Lahoda 2014-02-02 20:55:54 UTC
FWIW, I have filled:
https://bugs.openjdk.java.net/browse/JDK-8033421
Comment 2 _ gtzabari 2014-02-02 23:16:18 UTC
Thanks Jan!
Comment 3 Svata Dedic 2014-02-03 11:02:19 UTC
not a NB hint issue :)
Comment 4 Jan Lahoda 2014-02-09 18:30:29 UTC
FYI, fixed for JDK9:
http://hg.openjdk.java.net/jdk9/dev/langtools/rev/d1897a74e801
Comment 5 _ gtzabari 2014-12-06 17:27:04 UTC
Thanks Jan! I can't wait for JDK8 update 40 which contains this fix :)
Comment 6 _ gtzabari 2014-12-16 20:31:57 UTC
Okay. We've still got a problem.

I upgraded to JDK 8 update 40, and indeed the compiler warning is gone at build-time, but the Editor warning annotation is still there.

So it looks like Netbeans needs further work to fix this bug.
Comment 7 _ gtzabari 2014-12-17 08:38:23 UTC
Reassigning to "hints" component.
Comment 8 Jan Lahoda 2014-12-17 08:42:52 UTC
nb-javac needs to be merged with more up-to-date upstream javac before this is fully reflected in NB (or the change would need to be cherry-picked).
Comment 9 _ gtzabari 2014-12-17 17:32:53 UTC
Jan,

Good point. Thanks for the head's up.
Comment 10 Martin Balin 2016-07-07 07:19:03 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