Bug 163659 - [javadoc] Compiler should warn when method parameters are not identical
Summary: [javadoc] Compiler should warn when method parameters are not identical
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-07 09:30 EST by Pavel Krupets CLA
Modified: 2006-12-12 05:31 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (4.09 KB, patch)
2006-11-10 12:34 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Krupets CLA 2006-11-07 09:30:08 EST
I have a method:

public void method(IMyInterface int);

and IMyInterface hierarchy:

IMyInterface
  IMySubInterface (extends IMyInterface)

If I use the following javadocs I don't have warning in Eclipse but I have it in Sun javadocs.

@{link #method(IMySubInterface int)}

Note that IMySubInterface is used instead of IMyInterface.
Comment 1 Frederic Fusier CLA 2006-11-10 06:12:37 EST
Well spotted. Sun javadoc tool does not support that method parameter types are equivalent. They should be identical instead
Comment 2 Frederic Fusier CLA 2006-11-10 12:34:54 EST
Created attachment 53640 [details]
Proposed patch
Comment 3 Frederic Fusier CLA 2006-11-10 12:36:27 EST
Released for 3.3 M4 in HEAD stream.
Comment 4 David Audel CLA 2006-12-12 05:31:14 EST
Verified for 3.3M4 with I20061212-0010.