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 255200 - Push Down preview does not show in right pane
Summary: Push Down preview does not show in right pane
Status: RESOLVED DUPLICATE of bug 254448
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-11 07:52 UTC by MackSix
Modified: 2015-09-11 08:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
logfile (273.06 KB, text/plain)
2015-09-11 07:52 UTC, MackSix
Details
Screenshot (245.00 KB, image/png)
2015-09-11 07:54 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-09-11 07:52:30 UTC
Created attachment 156081 [details]
logfile

Create a simple Maven Java project with two classes; one extending the other like:


public class MuhClass {
    private int x = 0;
    private String s = "";

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public String getS() {
        return s;
    }

    public void setS(String s) {
        this.s = s;
    }
}


public class MuhSubClass extends MuhClass {
    
}


2. Put focus on MuhClass in Project window and invoke Push Down from its context menu. 
3. Select all 4 getters/setters and click Preview button.
4. Notice the preview shows in right pane. Click Cancel button.
5. Put focus on MuhSubClass in Project widow and invoke Push Down from its context menu.
6. Notice error message because there is no subclass to push down too. Click Cancel button. Look at log file and see a bunch of Exception thrown.
7. Repeat step #2 & #3. Look at log file and now this throws a bunch of exceptions. 
8. At this point if you don't see an empty preview pane on the right, keep invoking refactoring on both files. Try using the tool bar menu to invoke refactoring. It should happen after a few times.

Results: Nothing shows in right preview pane.

Expected: The preview of what the refactored file looks like. 


Product Version: NetBeans IDE Dev (Build 201509100002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2015-09-11 07:54:30 UTC
Created attachment 156082 [details]
Screenshot
Comment 2 Jiri Prox 2015-09-11 08:02:09 UTC

*** This bug has been marked as a duplicate of bug 254448 ***