From hannesw at openjdk.org Wed Oct 1 10:17:48 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Wed, 1 Oct 2025 10:17:48 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v4] In-Reply-To: References: Message-ID: On Tue, 30 Sep 2025 15:26:19 GMT, Nizar Benalla wrote: >> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template line 26: >> >>> 24: >>> 25: const sortLexicalLabel = "Sort lexicographically"; >>> 26: const sortSourceLabel = "Sort by source order"; >> >> These should be localized messages as the ones in the preceding lines. > > I avoided adding these in doclet.properties because they would be unused in the java code and may otherwise trip `CheckResourceKeys` That should not be a problem, `CheckResourceKeys` has a mechanism to check resource use in `script.js.template`: https://github.com/openjdk/jdk/blob/master/test/langtools/jdk/javadoc/tool/CheckResourceKeys.java#L209-L220 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2394084668 From hannesw at openjdk.org Fri Oct 3 11:12:33 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 3 Oct 2025 11:12:33 GMT Subject: RFR: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet Message-ID: Please review a trivial change to improve the error output for hybrid snippets with mismatching inline and external snippet text. Since the logging code drops trailing blank lines, differences in trailing whitespace were not displayed properly. By adding a terminal separator we make sure trailing blank lines are not discarded. This makes it also easier to see where the snippet diff ends. Old output: ----------------- inline ------------------- inline snippet ----------------- external ----------------- external snippet New output: ----------------- inline ------------------- inline snippet ----------------- external ----------------- external snippet -------------------------------------------- ------------- Commit messages: - 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet Changes: https://git.openjdk.org/jdk/pull/27621/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27621&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8276966 Stats: 4 lines in 2 files changed: 3 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/27621.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27621/head:pull/27621 PR: https://git.openjdk.org/jdk/pull/27621 From prappo at openjdk.org Fri Oct 3 13:26:12 2025 From: prappo at openjdk.org (Pavel Rappo) Date: Fri, 3 Oct 2025 13:26:12 GMT Subject: RFR: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet In-Reply-To: References: Message-ID: On Fri, 3 Oct 2025 11:07:02 GMT, Hannes Walln?fer wrote: > Please review a trivial change to improve the error output for hybrid snippets with mismatching inline and external snippet text. > > Since the logging code drops trailing blank lines, differences in trailing whitespace were not displayed properly. See [JDK-8304408](https://bugs.openjdk.org/browse/JDK-8304408) for an example where this occurs. By adding a terminal separator we make sure trailing blank lines are not discarded. This makes it also easier to see where the snippet diff ends. > > Old output: > > > ----------------- inline ------------------- > inline snippet > ----------------- external ----------------- > external snippet > > > New output: > > > ----------------- inline ------------------- > inline snippet > ----------------- external ----------------- > external snippet > -------------------------------------------- Does it make sense to add a test for this assertion? > By adding a terminal separator we make sure trailing blank lines are not discarded. ------------- PR Comment: https://git.openjdk.org/jdk/pull/27621#issuecomment-3365674029 From liach at openjdk.org Fri Oct 3 14:39:27 2025 From: liach at openjdk.org (Chen Liang) Date: Fri, 3 Oct 2025 14:39:27 GMT Subject: RFR: 8367610: Test tools/sincechecker/modules/java.base/JavaBaseCheckSince.java timed out on Windows In-Reply-To: References: Message-ID: On Tue, 23 Sep 2025 14:00:24 GMT, Nizar Benalla wrote: > Timeout after "8260555: Change the default TIMEOUT_FACTOR from 4 to 1" > > The test usually runs in 30 seconds but it seems to be struggling sometimes with the 120 second timeout. Marked as reviewed by liach (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/27453#pullrequestreview-3299347843 From hannesw at openjdk.org Fri Oct 3 14:45:19 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 3 Oct 2025 14:45:19 GMT Subject: RFR: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet [v2] In-Reply-To: References: Message-ID: > Please review a trivial change to improve the error output for hybrid snippets with mismatching inline and external snippet text. > > Since the logging code drops trailing blank lines, differences in trailing whitespace were not displayed properly. See [JDK-8304408](https://bugs.openjdk.org/browse/JDK-8304408) for an example where this occurs. By adding a terminal separator we make sure trailing blank lines are not discarded. This makes it also easier to see where the snippet diff ends. > > Old output: > > > ----------------- inline ------------------- > inline snippet > ----------------- external ----------------- > external snippet > > > New output: > > > ----------------- inline ------------------- > inline snippet > ----------------- external ----------------- > external snippet > -------------------------------------------- Hannes Walln?fer has updated the pull request incrementally with one additional commit since the last revision: Add test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27621/files - new: https://git.openjdk.org/jdk/pull/27621/files/4b353ef9..ad95230d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27621&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27621&range=00-01 Stats: 11 lines in 1 file changed: 8 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/27621.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27621/head:pull/27621 PR: https://git.openjdk.org/jdk/pull/27621 From hannesw at openjdk.org Fri Oct 3 14:45:19 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 3 Oct 2025 14:45:19 GMT Subject: RFR: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet In-Reply-To: References: Message-ID: On Fri, 3 Oct 2025 13:23:52 GMT, Pavel Rappo wrote: > Does it make sense to add a test for this assertion? > > > By adding a terminal separator we make sure trailing blank lines are not discarded. Definitely a good idea! Luckily we already have a hybrid snippet mismatch test with a trailing blank line, so I added a check for the correct output. ------------- PR Comment: https://git.openjdk.org/jdk/pull/27621#issuecomment-3365980341 From prappo at openjdk.org Fri Oct 3 14:59:27 2025 From: prappo at openjdk.org (Pavel Rappo) Date: Fri, 3 Oct 2025 14:59:27 GMT Subject: RFR: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet [v2] In-Reply-To: References: Message-ID: On Fri, 3 Oct 2025 14:45:19 GMT, Hannes Walln?fer wrote: >> Please review a trivial change to improve the error output for hybrid snippets with mismatching inline and external snippet text. >> >> Since the logging code drops trailing blank lines, differences in trailing whitespace were not displayed properly. See [JDK-8304408](https://bugs.openjdk.org/browse/JDK-8304408) for an example where this occurs. By adding a terminal separator we make sure trailing blank lines are not discarded. This makes it also easier to see where the snippet diff ends. >> >> Old output: >> >> >> ----------------- inline ------------------- >> inline snippet >> ----------------- external ----------------- >> external snippet >> >> >> New output: >> >> >> ----------------- inline ------------------- >> inline snippet >> ----------------- external ----------------- >> external snippet >> -------------------------------------------- > > Hannes Walln?fer has updated the pull request incrementally with one additional commit since the last revision: > > Add test Marked as reviewed by prappo (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/27621#pullrequestreview-3299451741 From hannesw at openjdk.org Fri Oct 3 15:56:31 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 3 Oct 2025 15:56:31 GMT Subject: RFR: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet [v2] In-Reply-To: References: Message-ID: On Fri, 3 Oct 2025 14:45:19 GMT, Hannes Walln?fer wrote: >> Please review a trivial change to improve the error output for hybrid snippets with mismatching inline and external snippet text. >> >> Since the logging code drops trailing blank lines, differences in trailing whitespace were not displayed properly. See [JDK-8304408](https://bugs.openjdk.org/browse/JDK-8304408) for an example where this occurs. By adding a terminal separator we make sure trailing blank lines are not discarded. This makes it also easier to see where the snippet diff ends. >> >> Old output: >> >> >> ----------------- inline ------------------- >> inline snippet >> ----------------- external ----------------- >> external snippet >> >> >> New output: >> >> >> ----------------- inline ------------------- >> inline snippet >> ----------------- external ----------------- >> external snippet >> -------------------------------------------- > > Hannes Walln?fer has updated the pull request incrementally with one additional commit since the last revision: > > Add test Thanks, Pavel! ------------- PR Comment: https://git.openjdk.org/jdk/pull/27621#issuecomment-3366259872 From hannesw at openjdk.org Fri Oct 3 15:56:32 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 3 Oct 2025 15:56:32 GMT Subject: Integrated: 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet In-Reply-To: References: Message-ID: On Fri, 3 Oct 2025 11:07:02 GMT, Hannes Walln?fer wrote: > Please review a trivial change to improve the error output for hybrid snippets with mismatching inline and external snippet text. > > Since the logging code drops trailing blank lines, differences in trailing whitespace were not displayed properly. See [JDK-8304408](https://bugs.openjdk.org/browse/JDK-8304408) for an example where this occurs. By adding a terminal separator we make sure trailing blank lines are not discarded. This makes it also easier to see where the snippet diff ends. > > Old output: > > > ----------------- inline ------------------- > inline snippet > ----------------- external ----------------- > external snippet > > > New output: > > > ----------------- inline ------------------- > inline snippet > ----------------- external ----------------- > external snippet > -------------------------------------------- This pull request has now been integrated. Changeset: f81c7c59 Author: Hannes Walln?fer URL: https://git.openjdk.org/jdk/commit/f81c7c592bbc9f5575ed41e41d12f54cbfc5e4aa Stats: 15 lines in 2 files changed: 11 ins; 0 del; 4 mod 8276966: Improve diagnostic output for the mismatching parts of a hybrid snippet Reviewed-by: prappo ------------- PR: https://git.openjdk.org/jdk/pull/27621 From sherman at openjdk.org Fri Oct 3 19:10:20 2025 From: sherman at openjdk.org (Xueming Shen) Date: Fri, 3 Oct 2025 19:10:20 GMT Subject: RFR: 8365675: Add String Unicode Case-Folding Support Message-ID: ### Summary Case folding is a key operation for case-insensitive matching (e.g., string equality, regex matching), where the goal is to eliminate case distinctions without applying locale or language specific conversions. Currently, the JDK does not expose a direct API for Unicode-compliant case folding. Developers now rely on methods such as: **String.equalsIgnoreCase(String)** - Unicode-aware, locale-independent. - Implementation uses Character.toLowerCase(Character.toUpperCase(int)) per code point. - Limited: does not support 1:M mapping defined in Unicode case folding. **Character.toLowerCase(int) / Character.toUpperCase(int)** - Locale-independent, single code point only. - No support for 1:M mappings. **String.toLowerCase(Locale.ROOT) / String.toUpperCase(Locale.ROOT)** - Based on Unicode SpecialCasing.txt, supports 1:M mappings. - Intended primarily for presentation/display, not structural case-insensitive matching. - Requires full string conversion before comparison, which is less efficient and not intended for structural matching. **1:M mapping example, U+00DF (?)** - String.toUpperCase(Locale.ROOT, "?") ? "SS" - Case folding produces "ss", matching Unicode caseless comparison rules. jshell> "\u00df".equalsIgnoreCase("ss") $22 ==> false jshell> "\u00df".toUpperCase(Locale.ROOT).toLowerCase(Locale.ROOT).equals("ss") $24 ==> true ### Motivation & Direction Add Unicode standard-compliant case-less comparison methods to the String class, enabling & improving reliable and efficient Unicode-aware/compliant case-insensitive matching. - Unicode-compliant **full** case folding. - Simpler, stable and more efficient case-less matching without workarounds. - Brings Java's string comparison handling in line with other programming languages/libraries. This PR proposes to introduce the following comparison methods in `String` class - boolean equalsFoldCase(String anotherString) - int compareToFoldCase(String anotherString) - Comparator UNICODE_CASEFOLD_ORDER These methods are intended to be the preferred choice when Unicode-compliant case-less matching is required. *Note: An early draft also proposed a String.toCaseFold() method returning a new case-folded string. However, during review this was considered error-prone, as the resulting string could easily be mistaken for a general transformation like toLowerCase() and then passed into APIs where case-folding semantics are not appropriate. ### The New API /** * Compares this {@code String} to another {@code String} for equality, * using Unicode case folding. Two strings are considered equal * by this method if their case-folded forms are identical. *

* Case folding is defined by the Unicode Standard in * CaseFolding.txt, * including 1:M mappings. For example, {@code "Ma?e".equalsFoldCase("MASSE")} * returns {@code true}, since the character {@code U+00DF} (sharp s) folds * to {@code "ss"}. *

* Case folding is locale-independent and language-neutral, unlike * locale-sensitive transformations such as {@link #toLowerCase()} or * {@link #toUpperCase()}. It is intended for caseless matching, * searching, and indexing. * * @apiNote * This method is the Unicode-compliant alternative to * {@link #equalsIgnoreCase(String)}. It implements full case folding as * defined by the Unicode Standard, which may differ from the simpler * per-character mapping performed by {@code equalsIgnoreCase}. * For example: *

{@snippet lang=java :
     * String a = "Ma?e";
     * String b = "MASSE";
     * boolean equalsFoldCase = a.equalsFoldCase(b);       // returns true
     * boolean equalsIgnoreCase = a.equalsIgnoreCase(b);   // returns false
     * }
* * @param anotherString * The {@code String} to compare this {@code String} against * * @return {@code true} if the given object is not {@code null} and represents * the same sequence of characters as this string under Unicode case * folding; {@code false} otherwise. * * @see #compareToFoldCase(String) * @see #equalsIgnoreCase(String) * @since 26 */ public boolean equalsFoldCase(String anotherString) /** * Compares two strings lexicographically using Unicode case folding. * This method returns an integer whose sign is that of calling {@code compareTo} * on the Unicode case folded version of the strings. Unicode Case folding * eliminates differences in case according to the Unicode Standard, using the * mappings defined in * CaseFolding.txt, * including 1:M mappings, such as {@code"?"} ? {@code }"ss"}. *

* Case folding is a locale-independent, language-neutral form of case mapping, * primarily intended for caseless matching. Unlike {@link #compareToIgnoreCase(String)}, * which applies a simpler locale-insensitive uppercase mapping. This method * follows the Unicode full case folding, providing stable and * consistent results across all environments. *

* Note that this method does not take locale into account, and may * produce results that differ from locale-sensitive ordering. Use * {@link java.text.Collator} for locale-sensitive comparison. * * @apiNote * This method is the Unicode-compliant alternative to * {@link #compareToIgnoreCase(String)}. It implements the full case folding * as defined by the Unicode Standard, which may differ from the simpler * per-character mapping performed by {@code compareToIgnoreCase}. * For example: *

{@snippet lang=java :
     * String a = "Ma?e";
     * String b = "MASSE";
     * int cmpFoldCase = a.compareToFoldCase(b);     // returns 0
     * int cmpIgnoreCase = a.compareToIgnoreCase(b); // returns > 0
     * }
* * @param str the {@code String} to be compared. * @return a negative integer, zero, or a positive integer as the specified * String is greater than, equal to, or less than this String, * ignoring case considerations by case folding. * @see #equalsFoldCase(String) * @see #compareToIgnoreCase(String) * @see java.text.Collator * @since 26 */ public int compareToFoldCase(String str) /** * A Comparator that orders {@code String} objects as by * {@link #compareToFoldCase(String) compareToFoldCase()}. * * @see #compareToFoldCase(String) * @since 26 */ public static final Comparator UNICODE_CASEFOLD_ORDER; ### Usage Examples Sharp s (U+00DF) case-folds to "ss" "stra?e".equalsIgnoreCase("strasse"); // false "stra?e".compareToIgnoreCase("strasse"); // != 0 "stra?e".equalsFoldCase("strasse"); // true ### Performance The JMH microbenchmark StringCompareToIgnoreCase has been updated to compare performance of compareToFoldCase with the existing compareToIgnoreCase(). Benchmark Mode Cnt Score Error Units StringCompareToIgnoreCase.asciiGreekLower avgt 15 20.195 ? 0.300 ns/op StringCompareToIgnoreCase.asciiGreekLowerCF avgt 15 11.051 ? 0.254 ns/op StringCompareToIgnoreCase.asciiGreekUpperLower avgt 15 6.035 ? 0.047 ns/op StringCompareToIgnoreCase.asciiGreekUpperLowerCF avgt 15 14.786 ? 0.382 ns/op StringCompareToIgnoreCase.asciiLower avgt 15 17.688 ? 1.396 ns/op StringCompareToIgnoreCase.asciiLowerCF avgt 15 44.552 ? 0.155 ns/op StringCompareToIgnoreCase.asciiUpperLower avgt 15 13.069 ? 0.487 ns/op StringCompareToIgnoreCase.asciiUpperLowerCF avgt 15 58.684 ? 0.274 ns/op StringCompareToIgnoreCase.greekLower avgt 15 20.642 ? 0.082 ns/op StringCompareToIgnoreCase.greekLowerCF avgt 15 7.255 ? 0.271 ns/op StringCompareToIgnoreCase.greekUpperLower avgt 15 5.737 ? 0.013 ns/op StringCompareToIgnoreCase.greekUpperLowerCF avgt 15 11.100 ? 1.147 ns/op StringCompareToIgnoreCase.lower avgt 15 20.192 ? 0.044 ns/op StringCompareToIgnoreCase.lowerrCF avgt 15 11.257 ? 0.259 ns/op StringCompareToIgnoreCase.supLower avgt 15 54.801 ? 0.415 ns/op StringCompareToIgnoreCase.supLowerCF avgt 15 15.207 ? 0.418 ns/op StringCompareToIgnoreCase.supUpperLower avgt 15 14.431 ? 0.188 ns/op StringCompareToIgnoreCase.supUpperLowerCF avgt 15 19.149 ? 0.985 ns/op StringCompareToIgnoreCase.upperLower avgt 15 5.650 ? 0.051 ns/op StringCompareToIgnoreCase.upperLowerCF avgt 15 14.338 ? 0.352 ns/op StringCompareToIgnoreCase.utf16SubLower avgt 15 14.774 ? 0.200 ns/op StringCompareToIgnoreCase.utf16SubLowerCF avgt 15 2.669 ? 0.041 ns/op StringCompareToIgnoreCase.utf16SupUpperLower avgt 15 16.250 ? 0.099 ns/op StringCompareToIgnoreCase.utf16SupUpperLowerCF avgt 15 11.524 ? 0.327 ns/op ### Refs [Unicode Standard 5.18.4 Caseless Matching](https://www.unicode.org/versions/latest/core-spec/chapter-5/#G21790) [Unicode? Standard Annex #44: 5.6 Case and Case Mapping](https://www.unicode.org/reports/tr44/#Casemapping) [Unicode Technical Standard #18: Unicode Regular Expressions RL1.5: Simple Loose Matches](https://www.unicode.org/reports/tr18/#Simple_Loose_Matches) [Unicode SpecialCasing.txt](https://www.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt) [Unicode CaseFolding.txt](https://www.unicode.org/Public/UCD/latest/ucd/CaseFolding.txt) ### Other Languages **Python string.casefold()** The str.casefold() method in Python returns a casefolded version of a string. Casefolding is a more aggressive form of lowercasing, designed to remove all case distinctions in a string, particularly for the purpose of caseless string comparisons. **Perl?s fc()** Returns the casefolded version of EXPR. This is the internal function implementing the \F escape in double-quoted strings. Casefolding is the process of mapping strings to a form where case differences are erased; comparing two strings in their casefolded form is effectively a way of asking if two strings are equal, regardless of case. Perl only implements the full form of casefolding, but you can access the simple folds using "casefold()" in Unicode::UCD] ad "prop_invmap()" in Unicode::UCD]. **ICU4J UCharacter.foldCase (Java)** Purpose: Provides extensions to the standard Java Character class, including support for more Unicode properties and handling of supplementary characters (code points beyond U+FFFF). Method Signature (String based): public static String foldCase(String str, int options) Method Signature (CharSequence & Appendable based): public static A foldCase(CharSequence src, A dest, int options, Edits edits) Key Features: Case Folding: Converts a string to its case-folded equivalent. Locale Independent: Case folding in UCharacter.foldCase is generally not dependent on locale settings. Context Insensitive: The mapping of a character is not affected by surrounding characters. Turkic Option: An option exists to include or exclude special mappings for Turkish/Azerbaijani text. Result Length: The resulting string can be longer or shorter than the original. Edits Recording: Allows for recording of edits for index mapping, styled text, and getting only changes. **u_strFoldCase (C/C++)** A lower-level C API function for case folding a string. Case Folding Options: Similar options as UCharacter.foldCase for controlling case folding behavior. Availability: Found in the ustring.h and unistr.h headers in the ICU4C library. ------------- Commit messages: - 8365675: Add String Unicode Case-Folding Support Changes: https://git.openjdk.org/jdk/pull/26892/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26892&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8365675 Stats: 1279 lines in 12 files changed: 1116 ins; 137 del; 26 mod Patch: https://git.openjdk.org/jdk/pull/26892.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26892/head:pull/26892 PR: https://git.openjdk.org/jdk/pull/26892 From nbenalla at openjdk.org Mon Oct 6 12:01:45 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 6 Oct 2025 12:01:45 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v4] In-Reply-To: References: Message-ID: <5bOTZcVOjEQ7v8Ku5elrUOB1YbOGwIKTkKSQBdEqqpw=.7c8eb9b6-248a-464c-8425-00f7b4d0b0e5@github.com> On Wed, 1 Oct 2025 10:15:29 GMT, Hannes Walln?fer wrote: >> I avoided adding these in doclet.properties because they would be unused in the java code and may otherwise trip `CheckResourceKeys` > > That should not be a problem, `CheckResourceKeys` has a mechanism to check resource use in `script.js.template`: > > https://github.com/openjdk/jdk/blob/master/test/langtools/jdk/javadoc/tool/CheckResourceKeys.java#L209-L220 Thank you Hannes, I missed this detail. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2405926633 From nbenalla at openjdk.org Mon Oct 6 13:36:07 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 6 Oct 2025 13:36:07 GMT Subject: RFR: 8367610: Test tools/sincechecker/modules/java.base/JavaBaseCheckSince.java timed out on Windows In-Reply-To: References: Message-ID: <3RkRFRXkSh_EieXR21oNHcu-RTtck24C1j1gZj9pOUA=.fb9d3178-c0c5-47fc-93e5-9b01ccd12ac3@github.com> On Tue, 23 Sep 2025 14:00:24 GMT, Nizar Benalla wrote: > Timeout after "8260555: Change the default TIMEOUT_FACTOR from 4 to 1" > > The test usually runs in 30 seconds but it seems to be struggling sometimes with the 120 second timeout. Thank you for the review Chen ------------- PR Comment: https://git.openjdk.org/jdk/pull/27453#issuecomment-3371670672 From nbenalla at openjdk.org Mon Oct 6 13:36:08 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 6 Oct 2025 13:36:08 GMT Subject: Integrated: 8367610: Test tools/sincechecker/modules/java.base/JavaBaseCheckSince.java timed out on Windows In-Reply-To: References: Message-ID: <5NeZt_ywyrJ5CAIZ5OaGq41Mtbbur9HG2nnilS-DcSc=.068da565-0ef2-4861-b9e3-0fb38869f1dc@github.com> On Tue, 23 Sep 2025 14:00:24 GMT, Nizar Benalla wrote: > Timeout after "8260555: Change the default TIMEOUT_FACTOR from 4 to 1" > > The test usually runs in 30 seconds but it seems to be struggling sometimes with the 120 second timeout. This pull request has now been integrated. Changeset: e3320a9d Author: Nizar Benalla URL: https://git.openjdk.org/jdk/commit/e3320a9df592a06c466ae9158d8f173921679952 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod 8367610: Test tools/sincechecker/modules/java.base/JavaBaseCheckSince.java timed out on Windows Reviewed-by: liach ------------- PR: https://git.openjdk.org/jdk/pull/27453 From liach at openjdk.org Tue Oct 7 15:10:56 2025 From: liach at openjdk.org (Chen Liang) Date: Tue, 7 Oct 2025 15:10:56 GMT Subject: RFR: 8367321: Fix CSS bugs in dark theme [v2] In-Reply-To: References: Message-ID: On Fri, 26 Sep 2025 09:30:42 GMT, Hannes Walln?fer wrote: >> Please review a change to fix various problems with the recently introduced dark theme for API docs: >> >> - Minimizes flickering when page is loaded with dark theme ([before](https://download.java.net/java/early_access/jdk26/docs/api/allclasses-index.html) / [after](https://cr.openjdk.org/~hannesw/8366942/api.00/allclasses-index.html)) >> - Fixes link color in table captions of inherited member summaries and class use pages ([before](https://download.java.net/java/early_access/jdk26/docs/api/java.base/java/lang/Exception.html#method-summary) / [after](https://cr.openjdk.org/~hannesw/8366942/api.00/java.base/java/lang/Exception.html#method-summary)) >> - Fixes section color in Serialized Form page ([before](https://download.java.net/java/early_access/jdk26/docs/api/serialized-form.html) / [after](https://cr.openjdk.org/~hannesw/8366942/api.00/serialized-form.html)) >> >> The change also includes some JS and CSS refactoring/cleanup. >> >> Generated documentation was tested on Firefox, Chrome and Safari and [can be viewed here](https://cr.openjdk.org/~hannesw/8366942/api.00/java.base/module-summary.html) (module java.base only). > > Hannes Walln?fer has updated the pull request incrementally with one additional commit since the last revision: > > Adjust table colors Marked as reviewed by liach (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/27191#pullrequestreview-3310598039 From hannesw at openjdk.org Tue Oct 7 15:19:06 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Tue, 7 Oct 2025 15:19:06 GMT Subject: Integrated: 8367321: Fix CSS bugs in dark theme In-Reply-To: References: Message-ID: On Wed, 10 Sep 2025 12:59:46 GMT, Hannes Walln?fer wrote: > Please review a change to fix various problems with the recently introduced dark theme for API docs: > > - Minimizes flickering when page is loaded with dark theme ([before](https://download.java.net/java/early_access/jdk26/docs/api/allclasses-index.html) / [after](https://cr.openjdk.org/~hannesw/8366942/api.00/allclasses-index.html)) > - Fixes link color in table captions of inherited member summaries and class use pages ([before](https://download.java.net/java/early_access/jdk26/docs/api/java.base/java/lang/Exception.html#method-summary) / [after](https://cr.openjdk.org/~hannesw/8366942/api.00/java.base/java/lang/Exception.html#method-summary)) > - Fixes section color in Serialized Form page ([before](https://download.java.net/java/early_access/jdk26/docs/api/serialized-form.html) / [after](https://cr.openjdk.org/~hannesw/8366942/api.00/serialized-form.html)) > > The change also includes some JS and CSS refactoring/cleanup. > > Generated documentation was tested on Firefox, Chrome and Safari and [can be viewed here](https://cr.openjdk.org/~hannesw/8366942/api.00/java.base/module-summary.html) (module java.base only). This pull request has now been integrated. Changeset: 8a20656e Author: Hannes Walln?fer URL: https://git.openjdk.org/jdk/commit/8a20656ed03aa26806c7b4a4e361999dea62aa79 Stats: 79 lines in 4 files changed: 24 ins; 10 del; 45 mod 8367321: Fix CSS bugs in dark theme 8366942: Dark mode pages briefly blink before going dark Reviewed-by: nbenalla, liach ------------- PR: https://git.openjdk.org/jdk/pull/27191 From nbenalla at openjdk.org Mon Oct 13 14:27:56 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 13 Oct 2025 14:27:56 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v5] In-Reply-To: References: Message-ID: > Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. > > Here is a preview of the new toggle. > > > https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 Nizar Benalla has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains eight commits: - Merge branch 'master' into toc-toggle # Conflicts: # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/stylesheet.css - improve implementation based on feedback - member details should also be sorted - Merge branch 'refs/heads/master' into toc-toggle - Merge branch 'master' into toc-toggle # Conflicts: # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java - Merge branch 'master' into toc-toggle # Conflicts: # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java - make toc.js resilient to being loaded after script.js - add toggle to sort TOC in lexical order ------------- Changes: https://git.openjdk.org/jdk/pull/26322/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=04 Stats: 260 lines in 10 files changed: 259 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26322.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26322/head:pull/26322 PR: https://git.openjdk.org/jdk/pull/26322 From nbenalla at openjdk.org Mon Oct 13 14:31:26 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 13 Oct 2025 14:31:26 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v5] In-Reply-To: References: Message-ID: On Mon, 13 Oct 2025 14:27:56 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains eight commits: > > - Merge branch 'master' into toc-toggle > > # Conflicts: > # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/stylesheet.css > - improve implementation based on feedback > - member details should also be sorted > - Merge branch 'refs/heads/master' into toc-toggle > - Merge branch 'master' into toc-toggle > > # Conflicts: > # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java > - Merge branch 'master' into toc-toggle > > # Conflicts: > # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java > - make toc.js resilient to being loaded after script.js > - add toggle to sort TOC in lexical order I couldn't include a `cr.openjdk` link due to some issues with uploading. I have updated the PR to fix the issues that were brought up in the review (sorting section headers, adding a visual cue etc) Here is what the button looks like now if it is selected. Screenshot 2025-10-13 at 15 26 56 Screenshot 2025-10-13 at 15 26 48 Screenshot 2025-10-13 at 15 27 06 Screenshot 2025-10-13 at 15 27 12 ------------- PR Comment: https://git.openjdk.org/jdk/pull/26322#issuecomment-3397766876 From hannesw at openjdk.org Mon Oct 13 15:28:34 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Mon, 13 Oct 2025 15:28:34 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v5] In-Reply-To: References: Message-ID: On Mon, 13 Oct 2025 14:28:21 GMT, Nizar Benalla wrote: > Here is what the button looks like now if it is selected. Very nice! The only issue I see is that when the pointer moves over the button, the whole sidebar content moves a little bit. I think this is because of `nav.toc button:hover` rules starting at line 718, which are actually meant for the show/hide sidebar button at the bottom of the sidebar. We could either change these rules to not include the sort button, or add a static `1px solid transparent` border to the sort button so its size does not change when setting the border on hover. ------------- PR Comment: https://git.openjdk.org/jdk/pull/26322#issuecomment-3397982092 From nbenalla at openjdk.org Tue Oct 14 10:47:25 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Tue, 14 Oct 2025 10:47:25 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v6] In-Reply-To: References: Message-ID: > Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. > > Here is a preview of the new toggle. > > > https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: prevent sidebar from moving by adding a transparent border ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26322/files - new: https://git.openjdk.org/jdk/pull/26322/files/3edbf946..16324290 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=04-05 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26322.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26322/head:pull/26322 PR: https://git.openjdk.org/jdk/pull/26322 From nbenalla at openjdk.org Tue Oct 14 16:26:24 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Tue, 14 Oct 2025 16:26:24 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: References: Message-ID: > Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. > > Here is a preview of the new toggle. > > > https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: remove redundant css ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26322/files - new: https://git.openjdk.org/jdk/pull/26322/files/16324290..6cb7d2f4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=06 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=05-06 Stats: 3 lines in 1 file changed: 0 ins; 3 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26322.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26322/head:pull/26322 PR: https://git.openjdk.org/jdk/pull/26322 From hannesw at openjdk.org Wed Oct 15 08:37:12 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Wed, 15 Oct 2025 08:37:12 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: References: Message-ID: On Tue, 14 Oct 2025 16:26:24 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: > > remove redundant css Changes requested by hannesw (Reviewer). src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template line 666: > 664: const href = link.getAttribute("href"); > 665: if (href === "#constructor-detail" || href === "#method-detail" > 666: || href === "#field-detail") { This is missing a few kinds of detail sections: `#annotation-interface-element-detail`, `#enum-constant-detail`, `#property-detail`. ------------- PR Review: https://git.openjdk.org/jdk/pull/26322#pullrequestreview-3339004846 PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2431570369 From hannesw at openjdk.org Wed Oct 15 12:30:50 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Wed, 15 Oct 2025 12:30:50 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: References: Message-ID: <4u5woLjIrHsTeEBcB78QUX7sMTX5vH00smkONQKuIL0=.b9224b27-206d-4be1-9c44-b59d6e190010@github.com> On Tue, 14 Oct 2025 16:26:24 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: > > remove redundant css Changes requested by hannesw (Reviewer). src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties line 255: > 253: doclet.table_of_contents=Table of contents > 254: doclet.Sort_lexicographically=Sort lexicographically > 255: doclet.Sort_by_source_order=Sort by source order Would be nice to add what is being sorted: "Sort member details lexicographically/by source order". src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties line 261: > 259: doclet.filter_table_of_contents=Filter table of contents > 260: doclet.filter_reset=Reset > 261: doclet.sort_table_of_contents=Sort table of contents members in lexicographical order I think "table of contents members" should be replaced with "member details". ------------- PR Review: https://git.openjdk.org/jdk/pull/26322#pullrequestreview-3340107914 PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2432367296 PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2432370495 From hannesw at openjdk.org Wed Oct 15 13:14:35 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Wed, 15 Oct 2025 13:14:35 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: References: Message-ID: On Tue, 14 Oct 2025 16:26:24 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: > > remove redundant css src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template line 822: > 820: } > 821: > 822: document.addEventListener("click", function(ev){ Event listener should be added directly to the buttons, so you can avoid the first two lines of determining the event target. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2432513407 From hannesw at openjdk.org Wed Oct 15 13:24:43 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Wed, 15 Oct 2025 13:24:43 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: References: Message-ID: On Tue, 14 Oct 2025 16:26:24 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: > > remove redundant css src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template line 808: > 806: reorderMemberDetailsAlpha(); > 807: allTocNavs().forEach(sortTocAlpha); > 808: initSectionData(); prevHash = null; handleScroll(); We should not set `prefHash = null` here and in the method below. It causes the TOC to scroll even if the viewed section has not changed, which is not useful. Imagine a user loading a class page, scrolling the TOC down to method details, realizing that method details are sorted in source order, and clicking the "Sort" button. Moving the TOC back up to the beginning is not useful, it should remain at its current position. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2432548173 From nbenalla at openjdk.org Fri Oct 17 09:31:41 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Fri, 17 Oct 2025 09:31:41 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v8] In-Reply-To: References: Message-ID: > Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. > > Here is a preview of the new toggle. > > > https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 Nizar Benalla has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 12 commits: - -simplify approach -TOC shouldn't scroll if viewed section hasn't changed -add event listener directly to button - Merge branch 'master' into toc-toggle - remove redundant css - prevent sidebar from moving by adding a transparent border - Merge branch 'master' into toc-toggle # Conflicts: # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/stylesheet.css - improve implementation based on feedback - member details should also be sorted - Merge branch 'refs/heads/master' into toc-toggle - Merge branch 'master' into toc-toggle # Conflicts: # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java - Merge branch 'master' into toc-toggle # Conflicts: # src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDoclet.java - ... and 2 more: https://git.openjdk.org/jdk/compare/1af37e5c...424e3854 ------------- Changes: https://git.openjdk.org/jdk/pull/26322/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=07 Stats: 252 lines in 10 files changed: 250 ins; 2 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26322.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26322/head:pull/26322 PR: https://git.openjdk.org/jdk/pull/26322 From nbenalla at openjdk.org Fri Oct 17 09:34:10 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Fri, 17 Oct 2025 09:34:10 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: <4u5woLjIrHsTeEBcB78QUX7sMTX5vH00smkONQKuIL0=.b9224b27-206d-4be1-9c44-b59d6e190010@github.com> References: <4u5woLjIrHsTeEBcB78QUX7sMTX5vH00smkONQKuIL0=.b9224b27-206d-4be1-9c44-b59d6e190010@github.com> Message-ID: On Wed, 15 Oct 2025 12:27:10 GMT, Hannes Walln?fer wrote: >> Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: >> >> remove redundant css > > src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/doclets.properties line 255: > >> 253: doclet.table_of_contents=Table of contents >> 254: doclet.Sort_lexicographically=Sort lexicographically >> 255: doclet.Sort_by_source_order=Sort by source order > > Would be nice to add what is being sorted: "Sort member details lexicographically/by source order". Good catch, I'll add it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2439020132 From nbenalla at openjdk.org Fri Oct 17 10:22:15 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Fri, 17 Oct 2025 10:22:15 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v9] In-Reply-To: References: Message-ID: <4WybhYTMdKjH83WrxHuvElK_YcnTRwhET3HzhjQlsYM=.a80d02c1-ed91-4f85-8b60-42b73d0d0c63@github.com> > Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. > > Here is a preview of the new toggle. > > > https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: button A-Z text needs to be white on mobile dark theme ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26322/files - new: https://git.openjdk.org/jdk/pull/26322/files/424e3854..2ca5aa2b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=08 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26322&range=07-08 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26322.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26322/head:pull/26322 PR: https://git.openjdk.org/jdk/pull/26322 From nbenalla at openjdk.org Fri Oct 17 10:27:31 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Fri, 17 Oct 2025 10:27:31 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v7] In-Reply-To: References: Message-ID: On Wed, 15 Oct 2025 13:21:55 GMT, Hannes Walln?fer wrote: >> Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: >> >> remove redundant css > > src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template line 808: > >> 806: reorderMemberDetailsAlpha(); >> 807: allTocNavs().forEach(sortTocAlpha); >> 808: initSectionData(); prevHash = null; handleScroll(); > > We should not set `prevHash = null` here and in the method below. It causes the TOC to scroll even if the viewed section has not changed, which is not useful. > > Imagine a user loading a class page, scrolling the TOC down to method details, realizing that method details are sorted in source order, and clicking the "Sort" button. Scrolling the TOC back up to the beginning is not useful, it should remain at its current position. Fixed in https://github.com/openjdk/jdk/pull/26322/commits/424e38547d7a88bb37941966fe674a16be4748e2, Thanks! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26322#discussion_r2439213365 From hannesw at openjdk.org Fri Oct 17 14:22:05 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 17 Oct 2025 14:22:05 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v9] In-Reply-To: <4WybhYTMdKjH83WrxHuvElK_YcnTRwhET3HzhjQlsYM=.a80d02c1-ed91-4f85-8b60-42b73d0d0c63@github.com> References: <4WybhYTMdKjH83WrxHuvElK_YcnTRwhET3HzhjQlsYM=.a80d02c1-ed91-4f85-8b60-42b73d0d0c63@github.com> Message-ID: <1d-b-HtLkhN9w8uCw4wWXpnDuSQCgQscUxHEog0REwY=.1e797ab8-5f15-47ac-b5c1-12d27a6a1bff@github.com> On Fri, 17 Oct 2025 10:22:15 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: > > button A-Z text needs to be white on mobile dark theme Looks good to me. Well done, Nizar! ------------- Marked as reviewed by hannesw (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/26322#pullrequestreview-3350590874 From nbenalla at openjdk.org Mon Oct 20 08:56:19 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 20 Oct 2025 08:56:19 GMT Subject: RFR: 8361366: Allow sorting of member details in lexicographical order [v9] In-Reply-To: <4WybhYTMdKjH83WrxHuvElK_YcnTRwhET3HzhjQlsYM=.a80d02c1-ed91-4f85-8b60-42b73d0d0c63@github.com> References: <4WybhYTMdKjH83WrxHuvElK_YcnTRwhET3HzhjQlsYM=.a80d02c1-ed91-4f85-8b60-42b73d0d0c63@github.com> Message-ID: <8syVSlRsK6KuxOiONXsNeXxI31dQctsyanPwxltLncY=.c31e5492-6566-4f41-bd99-2399ca886443@github.com> On Fri, 17 Oct 2025 10:22:15 GMT, Nizar Benalla wrote: >> Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. >> >> Here is a preview of the new toggle. >> >> >> https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 > > Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: > > button A-Z text needs to be white on mobile dark theme Thank you Hannes for the multiple rounds of reviews. ------------- PR Comment: https://git.openjdk.org/jdk/pull/26322#issuecomment-3421109539 From nbenalla at openjdk.org Mon Oct 20 08:56:20 2025 From: nbenalla at openjdk.org (Nizar Benalla) Date: Mon, 20 Oct 2025 08:56:20 GMT Subject: Integrated: 8361366: Allow sorting of member details in lexicographical order In-Reply-To: References: Message-ID: On Tue, 15 Jul 2025 15:29:52 GMT, Nizar Benalla wrote: > Please review this patch to add a toggle to order the member details in the table of contents in lexical order. The selected choice is stored and preserved. > > Here is a preview of the new toggle. > > > https://github.com/user-attachments/assets/55c81e4b-5fc0-416e-8946-53aede419640 This pull request has now been integrated. Changeset: f158451c Author: Nizar Benalla URL: https://git.openjdk.org/jdk/commit/f158451c259a7f86af0851131af374d68d011003 Stats: 253 lines in 10 files changed: 251 ins; 2 del; 0 mod 8361366: Allow sorting of member details in lexicographical order Reviewed-by: hannesw ------------- PR: https://git.openjdk.org/jdk/pull/26322 From cushon at openjdk.org Mon Oct 20 14:44:06 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Mon, 20 Oct 2025 14:44:06 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations Message-ID: Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). ------------- Commit messages: - 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations Changes: https://git.openjdk.org/jdk/pull/27901/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8370237 Stats: 28 lines in 3 files changed: 28 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/27901.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27901/head:pull/27901 PR: https://git.openjdk.org/jdk/pull/27901 From cushon at openjdk.org Wed Oct 22 18:07:37 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Wed, 22 Oct 2025 18:07:37 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v2] In-Reply-To: References: Message-ID: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: Update another affected test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27901/files - new: https://git.openjdk.org/jdk/pull/27901/files/2d935b43..a99313bc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=00-01 Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/27901.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27901/head:pull/27901 PR: https://git.openjdk.org/jdk/pull/27901 From cushon at openjdk.org Wed Oct 22 18:07:39 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Wed, 22 Oct 2025 18:07:39 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations In-Reply-To: References: Message-ID: <0kyTa-tINebXunOwoNXuVAWeflV3BIKq7-MZzN_Zsgg=.171d989f-bbc5-4aee-9751-e3544b42f2d1@github.com> On Mon, 20 Oct 2025 14:36:17 GMT, Liam Miller-Cushon wrote: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). The CI failures are because this improves the errors reported `for test/langtools/tools/doclint/CrashInAnnotateTest.java`, I pushed a fix ------------- PR Comment: https://git.openjdk.org/jdk/pull/27901#issuecomment-3433564694 From jlahoda at openjdk.org Fri Oct 24 12:26:48 2025 From: jlahoda at openjdk.org (Jan Lahoda) Date: Fri, 24 Oct 2025 12:26:48 GMT Subject: RFR: 8370334: javadoc NPE with "import module" statement Message-ID: `Modules.enter` completes all root modules, but in case of additional modules being added to the module graph via `Modules.addExtraAddModules` (either from javadoc, or using the `CompilationTask.addModules`, these extra modules may not be completed at this time. Normally, they are completed eventually, but if their `module-info`s contain `import module`, an NPE will appear while checking the import, before the complete happens. The proposal herein is to consistently complete all modules in the module graph when the module graphs is setup. ------------- Commit messages: - Adding javac test. - Cleanup. - 8370334: javadoc NPE with "import module" statement Changes: https://git.openjdk.org/jdk/pull/27974/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27974&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8370334 Stats: 73 lines in 3 files changed: 68 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/27974.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27974/head:pull/27974 PR: https://git.openjdk.org/jdk/pull/27974 From duke at openjdk.org Sat Oct 25 02:53:02 2025 From: duke at openjdk.org (Josiah Noel) Date: Sat, 25 Oct 2025 02:53:02 GMT Subject: Withdrawn: 8368695: Support 101 switching protocol in jdk.httpserver In-Reply-To: References: Message-ID: On Fri, 10 Oct 2025 19:45:57 GMT, Josiah Noel wrote: > - adds a flag to ExchangeImpl to signal whether the current request is an Upgrade request > - Adds a new `UpgradeInputStream` to ensure that the server keeps track of when the upgraded request is closed > - on 101 response codes, `sendResponseHeaders` will not immediately close the output stream > - on 101 response codes, `sendResponseHeaders` will use an `UndefLengthOutputStream` This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/27751 From duke at openjdk.org Sat Oct 25 02:53:01 2025 From: duke at openjdk.org (Josiah Noel) Date: Sat, 25 Oct 2025 02:53:01 GMT Subject: RFR: 8368695: Support 101 switching protocol in jdk.httpserver [v13] In-Reply-To: References: Message-ID: > - adds a flag to ExchangeImpl to signal whether the current request is an Upgrade request > - Adds a new `UpgradeInputStream` to ensure that the server keeps track of when the upgraded request is closed > - on 101 response codes, `sendResponseHeaders` will not immediately close the output stream > - on 101 response codes, `sendResponseHeaders` will use an `UndefLengthOutputStream` Josiah Noel has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits: - Update ExchangeImpl.java - Merge remote-tracking branch 'upstream/master' into JDK-8368695 - reduce diff - Merge remote-tracking branch 'upstream/master' into JDK-8368695 - Update SwitchingProtocolTest.java - Update SwitchingProtocolTest.java - Update SwitchingProtocolTest.java - add exception test - Create UpgradeOutputStream.java - close raw streams - ... and 8 more: https://git.openjdk.org/jdk/compare/32697bf6...ae2b1184 ------------- Changes: https://git.openjdk.org/jdk/pull/27751/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27751&range=12 Stats: 25304 lines in 632 files changed: 6529 ins; 14641 del; 4134 mod Patch: https://git.openjdk.org/jdk/pull/27751.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27751/head:pull/27751 PR: https://git.openjdk.org/jdk/pull/27751 From vromero at openjdk.org Tue Oct 28 18:59:57 2025 From: vromero at openjdk.org (Vicente Romero) Date: Tue, 28 Oct 2025 18:59:57 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v2] In-Reply-To: References: Message-ID: On Wed, 22 Oct 2025 18:07:37 GMT, Liam Miller-Cushon wrote: >> Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). > > Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: > > Update another affected test test/langtools/tools/doclint/CrashInTypeAnnotateTest.java line 18: > 16: @interface A {} > 17: > 18: /** {@link List<@Nullable String>} shouldn't this be: `{@link List<@A String>}`? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27901#discussion_r2470721961 From jlahoda at openjdk.org Wed Oct 29 07:01:32 2025 From: jlahoda at openjdk.org (Jan Lahoda) Date: Wed, 29 Oct 2025 07:01:32 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v2] In-Reply-To: References: Message-ID: On Wed, 22 Oct 2025 18:07:37 GMT, Liam Miller-Cushon wrote: >> Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). > > Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: > > Update another affected test Looks good to me, except for the test tweak as @vicente-romero-oracle suggests. Thanks! ------------- PR Comment: https://git.openjdk.org/jdk/pull/27901#issuecomment-3460103262 From cushon at openjdk.org Wed Oct 29 07:39:23 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Wed, 29 Oct 2025 07:39:23 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v3] In-Reply-To: References: Message-ID: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: Fix typo in test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27901/files - new: https://git.openjdk.org/jdk/pull/27901/files/a99313bc..6af3b250 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/27901.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27901/head:pull/27901 PR: https://git.openjdk.org/jdk/pull/27901 From cushon at openjdk.org Wed Oct 29 07:39:25 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Wed, 29 Oct 2025 07:39:25 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v2] In-Reply-To: References: Message-ID: <1r8w1AZVc9ICVqs2TiRbQ0JpRxTPu61OD5Nj7tph5IA=.922c4514-4d81-4629-a489-b52c7c6ecda9@github.com> On Tue, 28 Oct 2025 18:57:32 GMT, Vicente Romero wrote: >> Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: >> >> Update another affected test > > test/langtools/tools/doclint/CrashInTypeAnnotateTest.java line 18: > >> 16: @interface A {} >> 17: >> 18: /** {@link List<@Nullable String>} > > shouldn't this be: `{@link List<@A String>}`? Thanks, fixed. This test was reproducing the crash even with the typo to use the wrong annotation, but definitely better not to rely on that. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27901#discussion_r2471998613 From jlahoda at openjdk.org Wed Oct 29 08:16:08 2025 From: jlahoda at openjdk.org (Jan Lahoda) Date: Wed, 29 Oct 2025 08:16:08 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v3] In-Reply-To: References: Message-ID: On Wed, 29 Oct 2025 07:39:23 GMT, Liam Miller-Cushon wrote: >> Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). > > Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: > > Fix typo in test Looks good to me. (I didn't run tests, though.) ------------- Marked as reviewed by jlahoda (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/27901#pullrequestreview-3392123641 From cushon at openjdk.org Wed Oct 29 10:22:36 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Wed, 29 Oct 2025 10:22:36 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v4] In-Reply-To: References: Message-ID: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision: Update examples.not-yet.txt ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27901/files - new: https://git.openjdk.org/jdk/pull/27901/files/6af3b250..152ef5fa Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/27901.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27901/head:pull/27901 PR: https://git.openjdk.org/jdk/pull/27901 From cushon at openjdk.org Wed Oct 29 10:27:07 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Wed, 29 Oct 2025 10:27:07 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v5] In-Reply-To: References: Message-ID: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). Liam Miller-Cushon has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision: - Merge remote-tracking branch 'origin/master' into JDK-8370237 - Undo accidental update of examples.not-yet.txt - Update examples.not-yet.txt - Fix typo in test - Update another affected test - 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27901/files - new: https://git.openjdk.org/jdk/pull/27901/files/152ef5fa..a05973c6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=03-04 Stats: 21830 lines in 532 files changed: 13148 ins; 5780 del; 2902 mod Patch: https://git.openjdk.org/jdk/pull/27901.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27901/head:pull/27901 PR: https://git.openjdk.org/jdk/pull/27901 From liach at openjdk.org Thu Oct 30 20:10:35 2025 From: liach at openjdk.org (Chen Liang) Date: Thu, 30 Oct 2025 20:10:35 GMT Subject: RFR: 8370971: Problemlist jdkDoctypeBadcharsCheck.java and jdkCheckHtml.java Message-ID: These two tests are now failing in our CI in addition to jdkCheckLinks. ------------- Commit messages: - 8370971 Changes: https://git.openjdk.org/jdk/pull/28074/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28074&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8370971 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/28074.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28074/head:pull/28074 PR: https://git.openjdk.org/jdk/pull/28074 From dholmes at openjdk.org Thu Oct 30 20:41:46 2025 From: dholmes at openjdk.org (David Holmes) Date: Thu, 30 Oct 2025 20:41:46 GMT Subject: RFR: 8370971: Problemlist jdkDoctypeBadcharsCheck.java and jdkCheckHtml.java In-Reply-To: References: Message-ID: On Thu, 30 Oct 2025 19:59:08 GMT, Chen Liang wrote: > These two tests are now failing in our CI in addition to jdkCheckLinks. Looks good. Thanks for addressing this. ------------- Marked as reviewed by dholmes (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/28074#pullrequestreview-3401541372 From liach at openjdk.org Thu Oct 30 20:41:47 2025 From: liach at openjdk.org (Chen Liang) Date: Thu, 30 Oct 2025 20:41:47 GMT Subject: RFR: 8370971: Problemlist jdkDoctypeBadcharsCheck.java and jdkCheckHtml.java In-Reply-To: References: Message-ID: On Thu, 30 Oct 2025 19:59:08 GMT, Chen Liang wrote: > These two tests are now failing in our CI in addition to jdkCheckLinks. Thanks for the reviews! ------------- PR Comment: https://git.openjdk.org/jdk/pull/28074#issuecomment-3470031319 From liach at openjdk.org Thu Oct 30 20:41:48 2025 From: liach at openjdk.org (Chen Liang) Date: Thu, 30 Oct 2025 20:41:48 GMT Subject: Integrated: 8370971: Problemlist jdkDoctypeBadcharsCheck.java and jdkCheckHtml.java In-Reply-To: References: Message-ID: On Thu, 30 Oct 2025 19:59:08 GMT, Chen Liang wrote: > These two tests are now failing in our CI in addition to jdkCheckLinks. This pull request has now been integrated. Changeset: 566aa126 Author: Chen Liang URL: https://git.openjdk.org/jdk/commit/566aa1267c7c9b0d1eb49dd9014461274c51280d Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod 8370971: Problemlist jdkDoctypeBadcharsCheck.java and jdkCheckHtml.java Reviewed-by: dholmes ------------- PR: https://git.openjdk.org/jdk/pull/28074 From cushon at openjdk.org Thu Oct 30 21:56:27 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Thu, 30 Oct 2025 21:56:27 GMT Subject: RFR: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations [v6] In-Reply-To: References: Message-ID: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). Liam Miller-Cushon has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision: - Merge branch 'openjdk:master' into JDK-8370237 - Merge remote-tracking branch 'origin/master' into JDK-8370237 - Undo accidental update of examples.not-yet.txt - Update examples.not-yet.txt - Fix typo in test - Update another affected test - 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27901/files - new: https://git.openjdk.org/jdk/pull/27901/files/a05973c6..7236dd54 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27901&range=04-05 Stats: 36100 lines in 228 files changed: 17971 ins; 16637 del; 1492 mod Patch: https://git.openjdk.org/jdk/pull/27901.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27901/head:pull/27901 PR: https://git.openjdk.org/jdk/pull/27901 From cushon at openjdk.org Fri Oct 31 09:55:23 2025 From: cushon at openjdk.org (Liam Miller-Cushon) Date: Fri, 31 Oct 2025 09:55:23 GMT Subject: Integrated: 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations In-Reply-To: References: Message-ID: On Mon, 20 Oct 2025 14:36:17 GMT, Liam Miller-Cushon wrote: > Hi, please consider this fix for a crash with `-Xdoclint` and type annotations. It is a generalization of a previous fix for [JDK-8266082](https://bugs.openjdk.org/browse/JDK-8266082). This pull request has now been integrated. Changeset: 8e3620a3 Author: Liam Miller-Cushon URL: https://git.openjdk.org/jdk/commit/8e3620a344f83a21191bb70cf2af24e9ae1952ce Stats: 33 lines in 4 files changed: 28 ins; 0 del; 5 mod 8370237: AssertionError in Annotate.fromAnnotations with -Xdoclint and type annotations Reviewed-by: jlahoda ------------- PR: https://git.openjdk.org/jdk/pull/27901 From hannesw at openjdk.org Fri Oct 31 13:38:37 2025 From: hannesw at openjdk.org (Hannes =?UTF-8?B?V2FsbG7DtmZlcg==?=) Date: Fri, 31 Oct 2025 13:38:37 GMT Subject: RFR: 8370612: Simplify implementation of dark theme Message-ID: Please review a change to simplify the implementation of CSS themes by solely relying on an attribute set by script instead of the dual script plus media queries approach. This allows us to get rid of duplicate declaration of CSS theme variables. On the downside, JavaScript must be enabled to recognize the system theme, but this is an acceptable compromise as documentation remains fully usable with JavaScript disabled. This change also makes it much easier for users to override or extend JavaDoc stylesheets. Also included is a fix for the keyboard tab order of the theme switcher. When opening the theme switcher and hitting the tab key, focus now goes to the theme switcher and no longer goes to the first link in the breadcrumb navigation if there is one. This required moving the HTML for the theme switcher next to the theme button, which required a whole series of test changes. I considered removing the theme switcher markup from these tests, but decided against it, mostly to make sure there are no other unchecked links in the navigation bar. This fix also required reducing the `z-index` of the mobile table of contents. Another improvement related to focus handling is to close the theme switcher when it loses focus, and when the `Enter` or `Escape` keys are pressed. Also included is a small change to slightly reduce the padding of the recently introduced TOC sort button. Sample documentation [can be viewed here](https://cr.openjdk.org/~hannesw/8370612/api.00/java.base/module-summary.html). ------------- Commit messages: - 8370612: Simplify implementation of dark theme Changes: https://git.openjdk.org/jdk/pull/28085/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28085&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8370612 Stats: 546 lines in 9 files changed: 191 ins; 285 del; 70 mod Patch: https://git.openjdk.org/jdk/pull/28085.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28085/head:pull/28085 PR: https://git.openjdk.org/jdk/pull/28085 From liach at openjdk.org Fri Oct 31 22:51:02 2025 From: liach at openjdk.org (Chen Liang) Date: Fri, 31 Oct 2025 22:51:02 GMT Subject: RFR: 8370612: Simplify implementation of dark theme In-Reply-To: References: Message-ID: <4yZU1a4FFqS0EVPO8TLeisXaxv722Tb40LupDQ2tBuw=.56e52a93-17dc-4b4c-afe7-4c2a2a968576@github.com> On Fri, 31 Oct 2025 13:30:06 GMT, Hannes Walln?fer wrote: > Please review a change to simplify the implementation of CSS themes by solely relying on an attribute set by script instead of the dual script plus media queries approach. This allows us to get rid of duplicate declaration of CSS theme variables. On the downside, JavaScript must be enabled to recognize the system theme, but this is an acceptable compromise as documentation remains fully usable with JavaScript disabled. This change also makes it much easier for users to override or extend JavaDoc stylesheets. > > Also included is a fix for the keyboard tab order of the theme switcher. When opening the theme switcher and hitting the tab key, focus now goes to the theme switcher and no longer goes to the first link in the breadcrumb navigation if there is one. This required moving the HTML for the theme switcher next to the theme button, which required a whole series of test changes. I considered removing the theme switcher markup from these tests, but decided against it, mostly to make sure there are no other unchecked links in the navigation bar. This fix also required reducing the `z-index` of the mobile table of contents. > > Another improvement related to focus handling is to close the theme switcher when it loses focus, and when the `Enter` or `Escape` keys are pressed. Also included is a small change to slightly reduce the padding of the recently introduced TOC sort button. > > Sample documentation [can be viewed here](https://cr.openjdk.org/~hannesw/8370612/api.00/java.base/module-summary.html). What is the purpose of the padding change? I see the padding is now narrower, but the bar is still thicker than in 25. The removal of dedicated CSS configurations for system settings looks nice. I even think that we might just drop our support for the dark theme if users don't allow javascript. So the changes look good to me in general. ------------- PR Comment: https://git.openjdk.org/jdk/pull/28085#issuecomment-3475117066