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 258585 - Refactor --> Move Field From Class B to Class A does not work at all.
Summary: Refactor --> Move Field From Class B to Class A does not work at all.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-30 08:02 UTC by lvwarren
Modified: 2016-07-27 22:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Execution snapshot (136.22 KB, image/png)
2016-03-31 06:37 UTC, lvwarren
Details
Result of attempting move. (103.97 KB, image/png)
2016-03-31 06:38 UTC, lvwarren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lvwarren 2016-03-30 08:02:25 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Mac OS X version 10.11.4 running on x86_64
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02

Reproducibility: Happens every time

STEPS:
  * Open dialog Refactor
  * Click on field to move field "double b" from ClassB to the ClassA

ACTUAL:
  Refactor displays message: "Can't find URL".

EXPECTED:
  field "double b"  is moved from from ClassB to the ClassA

MINIMAL EXAMPLE:

// Using Netbeans-->Refactor-->Move to move the field "double b;" from ClassB to ClassA doesn't work.
// Instead a message is displayed is displayed, "Can't find URL".

package javamovefieldbug;

public class JavaMoveFieldBug
{
	ClassA classA = new ClassA();
	ClassB classB = new ClassB();

	public static void main(String[] args)
	{
		System.out.println("hello world");
	}

	class ClassA
	{
		double a;
	}

	class ClassB
	{
		double b;
		double c;

	}
}
Comment 1 Jiri Prox 2016-03-30 11:01:34 UTC
Can you please attach messages.log file?

Thanks
Comment 2 lvwarren 2016-03-30 20:13:49 UTC
I am involved in in-house development, so I am not allowed to send log files.
The minimal example provided fails identically when the Refactor-->Move Field is attempted.
Comment 3 lvwarren 2016-03-31 06:37:39 UTC
Created attachment 159054 [details]
Execution snapshot

Refactor --> Move -->  one field from one class to another.
Comment 4 lvwarren 2016-03-31 06:38:58 UTC
Created attachment 159055 [details]
Result of attempting move.