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 147508 - [Pull Up][Push down] Remap generic names
Summary: [Pull Up][Push down] Remap generic names
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 147505 (view as bug list)
Depends on:
Blocks: 205605
  Show dependency tree
 
Reported: 2008-09-17 15:42 UTC by Jiri Prox
Modified: 2012-05-25 05:42 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 Jiri Prox 2008-09-17 15:42:12 UTC
Product Version: NetBeans IDE Dev (Build 20080917042039)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

The names of the generics need to be changed according the names of generic in the target type.

Steps to reproduce:
1) have a code:
class SuperClass<B> {
}

class Subtype<A> extends SuperClass<A> {

    public void m(A p) {
    }
}

2) pull up method m(A)
-> the A is not changed to B

the same problem is also reproducible with push down
Comment 1 Ralph Ruijs 2012-05-24 12:52:16 UTC
*** Bug 147505 has been marked as a duplicate of this bug. ***
Comment 2 Ralph Ruijs 2012-05-24 15:24:12 UTC
Changeset: 195eb7393a51
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2012-05-24 17:22
Message:   Issue #147508 - [Pull Up][Push down] Remap generic names
Comment 3 Quality Engineering 2012-05-25 05:42:44 UTC
Integrated into 'main-golden', will be available in build *201205250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/195eb7393a51
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #147508 - [Pull Up][Push down] Remap generic names