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 255938 - Different "@deprecated" IDE detection on interface and class method definitions
Summary: Different "@deprecated" IDE detection on interface and class method definitions
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P4 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-14 21:55 UTC by esapien
Modified: 2015-10-15 15: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 esapien 2015-10-14 21:55:50 UTC
It seems different criteria applies when identifying deprecated methods by the IDE.

Example 1:

// Interface method:
/** @deprecated */
void myMethod();  	// doesn't get strickenthrough

// Class implementation:
/** @deprecated */
public void myMethod() {...} 	// gets strickenthrough


Example 2:

// Interface method:
@Deprecated
void myMethod();  	// get strickenthrough

// Class implementation:
@Deprecated
public void myMethod() {...} 	// gets strickenthrough


Shouldn't they use the same criteria?

Thanks.



Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Linux version 3.11.10-21-desktop running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 Jiri Kovalsky 2015-10-15 15:24:29 UTC
Reassigned for further evaluation.