Withdrawn: 8338815: Add separation to exception message in JavacFileManager.DirectoryContainer

duke duke at openjdk.org
Thu Oct 17 13:15:19 UTC 2024


On Thu, 22 Aug 2024 08:08:57 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:

> Please review this trivial PR which injects a `": "` separator between the directory name and the exeption toString when constructing the IOException message in `JavacFileManager.DirectoryContainer.list`.
> 
> This changes the javac error message from:
> 
> `error accessing directory Z:\invalid-pathjava.nio.file.InvalidPathException: Illegal char <:> at index 4: file:txt`
> 
> into:
> 
> `error accessing directory Z:\invalid-path: java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:txt`
> 
> We could alternatively use some other separator, such as a `", "`.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/20673


More information about the compiler-dev mailing list