-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update Java documentation links to Java 11; use .inc
infix for included qhelp files
#5226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Java documentation links to Java 11; use .inc
infix for included qhelp files
#5226
Conversation
<!-- LINKS NO LONGER VALID: | ||
<p>Sun Bug Report: <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997">Doc: it's not explicitly documented java.util.Calendar serialization are thread-unsafe</a></p> | ||
<p>Sun Bug Report: <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579">ArrayIndexOutOfBoundsException in BaseCalendar</a></p> | ||
--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the links (even though the bug repots can still be found) because the bug reports are about bugs in the JDK source code, which is likely not relevant to most of the users.
for different locales. For example, if the default locale is ENGLISH, the function <code>toLowerCase()</code> | ||
converts a capital <code>I</code> to <code>i</code>; if the default locale is TURKISH, the function | ||
<code>toLowerCase()</code> converts a capital <code>I</code> to the Unicode Character "Latin small | ||
letter dotless i" (U+0131) (<a href="http://character-code.com/turkish-html-codes.php">Turkish HTML |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this link because it does not work anymore, is also probably not needed.
<li> | ||
Java Language Specification, 3rd ed: <a href="https://docs.oracle.com/javase/specs/jls/se6/html/conversions.html#5.4">5.4 String Conversion</a>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this link because it is about String concatenation in genereal and not related to toString()
.
<a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-5.html#jls-5.5.3">Checked Casts at Run Time</a>, | ||
<a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-5.html#jls-5.5.1">Reference Type Casting</a>, | ||
<a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.10.3">Subtyping among Array Types</a>. | ||
Java Language Specification: | ||
<a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-5.html#jls-5.1.6">Narrowing Reference Conversion</a>, | ||
<a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-4.html#jls-4.10.3">Subtyping among Array Types</a>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These §5.5 sections do not exist anymore in the latest versions, it looks like the content of that section has changed a lot.
<li> | ||
Java API Documentation: | ||
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html#compareTo%28T%29">Comparable.compareTo</a>, | ||
<a href="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html">Comparable</a>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this link to Comparable
because there is already a link to Comparable#compareTo
.
* Holds if the string is a standard system property as defined in: | ||
* | ||
* http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#getProperties() | ||
* https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#getProperties() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not update this link to Java 11 because the System properties listed for that version might be different than the ones for Java 7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome work, thank you very much! Changes LGTM, but pinging docs for a second look @github/docs-content-codeql
@aschackmull - do you have any thoughts about the failing tests? It looks as is the failure may be caused by one of the experimental queries (
I'm also not sure why we see a Java test failure for In general the docs changes look great 😄 |
The qhelp failure is due to the CI checking each The other failure is an internal test case that references the public query. This can't be fixed directly in this PR, so I'll handle that separately. |
@Marcono1234 Could you rename the |
I have also changed the extension of other help files for which no query file exists, I hope that is alright. |
That's excellent, thanks!
Probably yes. But that's a separate issue. |
Actually, I'll try to fix up our CI such that we can use |
java/ql/src/Likely Bugs/Serialization/NonSerializableComparator.qhelp
Outdated
Show resolved
Hide resolved
The CI has been updated to support |
Where possible update Java documentation links to Java 11. Additionally update some other links to use HTTPS.
070bca6
to
70d8e48
Compare
70d8e48
to
4513785
Compare
Have rebased onto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CPP changes LGTM.
<qhelp> | ||
<include src="CommentedOutCodeQuery.qhelp" /> | ||
<include src="CommentedOutCodeQuery.inc.qhelp" /> | ||
<include src="CommentedOutCodeCommon.qhelp" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one also needs a rename in this PR, since it's being changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs a rename because 1) that file is changed and 2) there is no corresponding .ql
file, right?
I actually had already updated this by accident (but forgot the file rename), then reverted it and moved it to #5275 🤦
Is there a built script I can run to notice these errors myself or will it only work through trial and error by you having to check the internal CI errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have amended this change to the last commit and force-pushed. There are no other changes so the diff only shows these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs a rename because 1) that file is changed and 2) there is no corresponding .ql file, right?
Correct.
Is there a built script I can run to notice these errors myself or will it only work through trial and error by you having to check the internal CI errors?
Unfortunately not. The bulk qhelp processing actually doesn't require these renames at the moment - it is only the CI that chokes on the the .qhelp
-without-.ql
situation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's a similar situation for javascript/ql/src/Metrics/FLinesOfSimilarCodeCommon.qhelp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry that I missed that. I have force-pushed the changes and went through all changed files to make sure that I have not missed another case, but I did not find any.
6f70ac5
to
3d56566
Compare
|
3d56566
to
b9c0193
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good now, thanks! I'll merge this indirectly to handle the failing test, so as long as you don't change the head of this PR anymore it should show up as merged once I get that sorted.
.inc
infix for included qhelp files
Thanks @Marcono1234 👍 really awesome of you to do this 💪 |
Where possible update Java documentation links to Java 11.
Additionally update some other links to use HTTPS (see also #5163).
Notable additional changes: