Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 566443

Summary: Java API doc wrong URL for member methods in newer JDK versions
Product: [Eclipse Project] JDT Reporter: David Martin <dhmartina>
Component: UIAssignee: Mikael Sterner <mikaels>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: kalyan_prasad
Version: 4.16   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/178341
Whiteboard:

Description David Martin CLA 2020-08-27 05:52:29 EDT
Related to Bug 539462: newer Java API links not only include extra elements, but have changed the format to include parameters. Parentheses "()" are used in newer versions instead of dashes "--":

https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#format-java.lang.String-java.lang.Object...-

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#format(java.lang.String,java.lang.Object...)

As a result Shift-F2 goes to the type javadoc, but not to the specified method member, eventhough the member name is still visible in the browser address field with the inappropriate dashes...
Comment 1 Eclipse Genie CLA 2021-03-24 19:58:53 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/178341
Comment 2 Noopur Gupta CLA 2021-03-25 02:09:49 EDT
(In reply to Eclipse Genie from comment #1)
> New Gerrit change created:
> https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/178341

Kalyan, please review when you get the time.
Comment 3 Kalyan Prasad Tatavarthi CLA 2021-08-12 06:50:25 EDT

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