On Fri, 3 Nov 2023 19:28:24 GMT, Roger Riggs <rriggs at openjdk.org> wrote: > String s = name.substring(0, indexOfExt); I assume that `indexOfExt` is a typo which should be simply `index`. ------------- PR Comment: https://git.openjdk.org/jdk/pull/16226#issuecomment-1820003358