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 236076 - [Pull Down] reference super.method are not checked when pulling down
Summary: [Pull Down] reference super.method are not checked when pulling down
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-17 14:47 UTC by Jiri Prox
Modified: 2014-09-13 04: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 Jiri Prox 2013-09-17 14:47:44 UTC
Reference to super class using keyword super are not checked when pulling down element.

Steps to reproduce:
1) have two classes
public class SuperClass {
    public void method() {
    }
}

and

public class Test extends SuperClass {    
    public void use() {
        super.method();
    }    
}

2) call pull down on 'method()'

-> refactoring is performed without any warning, but 'super.method()' is invalid code


Product Version: NetBeans IDE Dev (Build 20130917-514f277e3674)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Ralph Ruijs 2014-09-08 22:17:03 UTC
changeset:   62cf51ca9bb4
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Tue Sep 09 00:13:40 2014 +0200
summary:     #236076 #98166
             Update this and super keywords for pushed-down members
Comment 2 Quality Engineering 2014-09-13 04:52:48 UTC
Integrated into 'main-silver', will be available in build *201409130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/62cf51ca9bb4
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #236076 #98166
Update this and super keywords for pushed-down members