RFR: JDK-8322874: Redirection loop in index.html
    Hannes Wallnöfer 
    hannesw at openjdk.org
       
    Tue Jan 30 08:39:41 UTC 2024
    
    
  
On Thu, 4 Jan 2024 21:06:17 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> Please review a simple fix to address an apparently long-standing issue of generating a redirection loop in the top-level `index.html` file.
> 
> The fix is simply to remove some obsolete/unnecessary code in `HtmlConfiguration.setTopFile` that silently and incorrectly short-circuited the functionality of that method.
> 
> In addition to the fix, an `assert` statement is added in `IndexRedirectWriter` to ensure that invalid arguments are not provided. (An alternative would be explicit `if` statements than can throw NPE or ILA.
> 
> The test case is when there are no classes or interfaces specified in the command-line arguments.
Nice catch!
-------------
Marked as reviewed by hannesw (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/17270#pullrequestreview-1850515401
    
    
More information about the javadoc-dev
mailing list