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 216812

Summary: cannot refactor (rename a method) protected Schema.Column cachCol(FuncSet<CP> fs, CP v, Schema.DataType type)
Product: java Reporter: tschorsch
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: PLATFORM, UI
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description tschorsch 2012-08-13 14:44:28 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Linux version 3.2.0-29-generic running on amd64
Java; VM; Vendor = 1.7.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.1-b03

the code that could not be refactored (renamed) was the first function as defined below. As you can see it is overloaded and simply calls another method of the same name. There are no other overloaded methods named cachCol

	protected Schema.Column cachCol(FuncSet<CP> fs, CP v, Schema.DataType type) {
		return cachCol(fs, v, type, null);
	}
	protected Schema.Column cachCol(FuncSet<CP> fs, CP v, Schema.DataType type, Class obj_type) {
		Schema.Column sc = getCachingSchCol(v, type, obj_type);
		if (sc.isNew()) newColCleanup(sc, fs, v);
		return sc;
	}


the class def is

public abstract class CacheFunc<CP extends CalcPeriod> extends Func<CP> {

if you need more let me know
Comment 1 tschorsch 2012-08-13 14:44:34 UTC
Created attachment 123057 [details]
IDE log
Comment 2 Ralph Ruijs 2015-03-24 12:42:06 UTC
Works for me in latest dev build. Please add a sample project which shows the issue if the problem still occurs. Thanks!