Community
Participate
Working Groups
If you hover over a method it only sayes that the Object has no description, but if you got to the JavaDoc it brings you to the Class's JavaDoc. It does that because of changes in the URL, as an Example before it was: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/io/ObjectOutputStream.html#writeObject-java.lang.Object- now it needs to be: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/io/ObjectOutputStream.html#writeObject(java.lang.Object) but it still does it the old way. -- Configuration Details -- Product: Eclipse IDE 4.20.0.20210527-1300 (org.eclipse.epp.package.java.product)Installed Features: org.eclipse.jdt 3.18.800.v20210519-1800 Versioning Plugin: org.eclipse.platform 4.20.0.v20210519-1800
Created attachment 286824 [details] A method where it doesnt get Displayed
I don't see this issue with JDK 16 being used as a project JRE for any of the specified methods in comment #0. I tried with the latest I-build from Eclipse 4.21. Please try with the latest I-build and openjdk-16 and provide more details to reproduce if you still see the issue.
I found out that the small Window that appears takes its data from the sources and my sources dont contain JavaDoc but if you click on 'Open Attached JavaDoc in a Browser' it still will only take you to the Class's JavaDoc and not to the actual Method description.
(In reply to Sterndu 13570 from comment #3) > but if you click on 'Open > Attached JavaDoc in a Browser' it still will only take you to the Class's > JavaDoc and not to the actual Method description. Is this happening with Java 15 and higher or was the case earlier as well?
I know that wasnt the case in java 8 but with java 15+. Now I tested it with all the versions from 8 to 16 i know that it changed with java 10. So the api documentations of java 8 and 9 use this: "https://docs.oracle.com/javase/9/docs/api/java/io/PrintStream.html#append-char-" to focus on a function and the api documentations of 10 and above use this: "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html#append(char)".
I tried different Java versions for the method Javadoc of PrintStream's append(CharSequence csq, int start, int end) method. Java 7: https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html#append(java.lang.CharSequence,%20int,%20int) Java 8 and 9: https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html#append-java.lang.CharSequence-int-int- https://docs.oracle.com/javase/9/docs/api/java/io/PrintStream.html#append-java.lang.CharSequence-int-int- Java 10: https://docs.oracle.com/javase/10/docs/api/java/io/PrintStream.html#append(java.lang.CharSequence,int,int) Java 11 .. Java 16: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html#append(java.lang.CharSequence,int,int)
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/183426
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/183426 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=3f5e67d786bbd76df3c993f6430f4699aa846863
Released the fix. Please check the next Integration build from https://download.eclipse.org/eclipse/downloads/index.html to verify the fix.
*** Bug 566443 has been marked as a duplicate of this bug. ***
Verified in I20210817-1840.
They also changed Constructor's. Eclipse tries to access them via: https://blah/blah.html#Class-Name(params) but it would need to be: https://blah/blah.html#<init>(params) example: thats what Eclipse tries: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#Object() thats what would be correct: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#<init>()
Please open a new bug report for 4.22 as this one is closed for 4.21.