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 237723 - deprecated attribute passed incorrectly
Summary: deprecated attribute passed incorrectly
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 16:06 UTC by henri127
Modified: 2013-10-31 10:32 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 henri127 2013-10-28 16:06:35 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

When two methods or interfaces exists both with javadoc and the first with the deprecated attribute, the deprecated attribute is passed to the second method or variable when the first one is commented with //
Comment 1 Jiri Prox 2013-10-30 12:50:34 UTC
Can you please provide sample of code or screenshot?
Thanks
Comment 2 henri127 2013-10-30 16:22:47 UTC
Here is a simple example.

package mypackage;
public class DeprecatedExample {

    /**
     * first variable
     * @deprecated
     */
    public int first;

    /**
     * second variable
     */
    public int second;
}

when changed to:

public class DeprecatedExample {

    /**
     * first variable
     * @deprecated
     */
//    public int first;

    /**
     * second variable
     */
    public int second;

}
marks second as deprecated, at least in my version of netbeans. I found this when porting c code to java, i.e. ffmpeg.
I could not find ffmpeg in java on the internet, does it exist?
Comment 3 Jiri Prox 2013-10-31 10:32:42 UTC
Thanks,

I can reproduce it in current dev build as well