Bug 198986 - Refactor -> Renaming of parameter does not rename javadoc @param tag
Summary: Refactor -> Renaming of parameter does not rename javadoc @param tag
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-06 18:01 EDT by Isaac Shabtay CLA
Modified: 2007-12-20 06:48 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Shabtay CLA 2007-08-06 18:01:27 EDT
Build ID: I20070621-1340

Steps To Reproduce:
1) Create a simple class:

public static class Option
{
	private	String	value;
	private	String	label;
	
	/**
	 * 
	 * @param v
	 * @param l
	 */
	public Option (String v, String l)
	{
		super();
		
		value = v;
		label = l;
	}
}

2) Select one of the parameters in the method's signature.

3) Hit Alt+Shift+R for Rename.

4) Rename, say, from 'v' to 'v1'.

5) Hit ENTER.

I would expect to see the "@param" tag changing to reflect the new name of the parameter. In previous versions (say, 3.2.x included with IBM Rational Application Developer 7.0) it works just fine. Got broken at some time between 3.2 and 3.3.

More information:
Comment 1 Frederic Fusier CLA 2007-08-07 07:43:20 EDT
Several things here:
1) The build you refer to is not 3.3.0 (should be I20070625-1500)
2) static is not a valid qualifier for a main type
3) It works for me using 3.3.0 build...

I can reproduce the symptom you described if I uncheck 'Process Javadoc comments' check-box in Java Compiler > Javadoc preference page...

Please verify that you have enabled this option and reopen if this is not the explanation of your problem, thanks
Comment 2 Isaac Shabtay CLA 2007-08-07 20:23:56 EDT
Hello Frederic,

1) Help -> About gives me the following:

Version: 3.3.0
Build id: I20070621-1340

I'm using the Eclipse package for JEE developers (the "Europa" build). 

2) It wasn't a main type - I copied & pasted code from my workspace.

3) You are right, I am sorry. I was under the impression that the "process javadoc" preferences had to do with the compiler errors / warnings settings, and did not realize that it also enables refactoring.

I owe you guys an apology - will be more careful next time. (hopefully)


      Isaac
Comment 3 Frederic Fusier CLA 2007-12-20 06:48:21 EST
Verified by reporter