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 211894 - Extract Superclass: Comments Lost On Methods
Summary: Extract Superclass: Comments Lost On Methods
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P1 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-01 07:23 UTC by MackSix
Modified: 2012-05-20 01:52 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 MackSix 2012-05-01 07:23:02 UTC
Comments are lost on methods when extracting Superclass. Refactor>>Extract Superclass...

This works in v7.1.2. Regression -> P1

Product Version: NetBeans IDE Dev (Build 201204270400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 1 Ralph Ruijs 2012-05-01 10:13:16 UTC
changeset : e253c2d5329c
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date          : Tue May 01 12:09:24 CEST 2012
summary  : #211894 - Extract Superclass: Comments Lost On Methods
Comment 2 Quality Engineering 2012-05-02 10:04:32 UTC
Integrated into 'main-golden', will be available in build *201205020400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e253c2d5329c
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #211894 - Extract Superclass: Comments Lost On Methods
Comment 3 MackSix 2012-05-05 15:48:26 UTC
Now only Doc comments are retained on methods and the comments on fields are lost. Was this the intention?

Product Version: NetBeans IDE Dev (Build 201205050400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 4 Ralph Ruijs 2012-05-07 10:49:57 UTC
No this is not intentional, thanks for the report. I removed all old implementations which copied only javadoc comments.

changeset   : http://hg.netbeans.org/jet-main/rev/b6f2c9095dce
tags        : tip 
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Mon May 07 12:31:48 CEST 2012
summary     : #211894 - Extract Superclass: Comments Lost On Methods
Comment 5 Quality Engineering 2012-05-09 09:59:10 UTC
Integrated into 'main-golden', will be available in build *201205090400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b6f2c9095dce
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #211894 - Extract Superclass: Comments Lost On Methods