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 204088 - Provide Hint to automatically add @SafeVarargs
Summary: Provide Hint to automatically add @SafeVarargs
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 01:45 UTC by mjr_1974
Modified: 2013-09-02 14:20 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 mjr_1974 2011-10-22 01:45:27 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Linux version 2.6.35-30-generic running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17


The IDE correctly reports "Possible heap corruption from parameterized vararg type T" but doesn't provide a hint to automatically add the annotation @SafeVarargs to the offending method.
Comment 1 mjr_1974 2011-10-23 20:30:33 UTC
I guess this item will make the hint "Final private method" useless, because to use @SafeVarargs the method should be final (even if it is private).