You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for #22461 Empty ClassPath attribute in one or more classpath jars 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
0 commit comments