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 241445 - "Create field" hint removes javadoc from class/interface/enum
Summary: "Create field" hint removes javadoc from class/interface/enum
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-05 13:57 UTC by markiewb
Modified: 2014-02-09 14:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue (35.86 KB, image/png)
2014-02-05 13:57 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2014-02-05 13:57:39 UTC
Created attachment 144833 [details]
Shows the issue

* open a java class with a javadoc comment (for the class)
* add a constructor
* add a parameter to the constructor
* invoke the hint "create field" for the new parameter

ACTUAL:
field was created
javadoc from class is gone (I guess this will also be valid for interfaces/enums)

EXPECTED:
field was created
javadoc from class is retained

Product Version: NetBeans IDE 8.0 Beta (Build 201401091443)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 Svata Dedic 2014-02-07 17:26:32 UTC
Seems to work in Dev build (Build 20140206), please try again in a recent build.
Comment 2 markiewb 2014-02-09 14:22:14 UTC
Verified in 201402090001