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 193908 - Deprecation warning does not wamooze
Summary: Deprecation warning does not wamooze
Status: RESOLVED DUPLICATE of bug 195178
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 12:20 UTC by Chiana
Modified: 2011-02-11 08:24 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 Chiana 2010-12-29 12:20:02 UTC
[ BUILD # : #6381 ]
[ JDK VERSION : 1.6.22 ]

When you add a @Suppresswarnings("deprecation") the IDE still gives the warning
in some cases...
 - - - Class deppad, has been deprecated
@Deprecated
public class deppad {

  public void bounce() {
  }
}
 - - -  Class NotDeppad, uses deppad
public class NotDeppad {

  public void testa() {
    @SuppressWarnings("deprecation")
    deppad ll = new deppad();
  }
}

In this construct it will still give the warning that deppad has been
deprecated.
Comment 1 Jan Lahoda 2011-02-11 08:24:14 UTC

*** This bug has been marked as a duplicate of bug 195178 ***