Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #22461 Empty ClassPath attribute in one or more classpath jar…
…s causes crash (#22462) Change to how an empty or `null` jar manifest `ClassPath:` property is handled: in dotty.tools.dotc.classpath.ClassPathFactory: - `classesInExpandedPath(...)` returns and empty `IndexedSeq` rather than crash - `isJarOrZip` returns `false` on a `null` reference rather than crash in dotty.tools.dotc.classpath.FileUtils: - `createSourcePath` fails with an error message on a `null` file parameter. In the context of #22461, this causes an empty `ClassPath:` property to be treated the same as a mispelled or missing classpath entry, which are silently ignored, matching the behaviour of legacy scripts. Closes #22461
- Loading branch information