We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f24b5d1 commit 01fc715Copy full SHA for 01fc715
compiler/src/dotty/tools/io/Jar.scala
@@ -50,7 +50,7 @@ class Jar(file: File) {
50
def mainClass: Option[String] = manifest.map(_(Name.MAIN_CLASS))
51
/** The manifest-defined classpath String if available. */
52
def classPathString: Option[String] =
53
- for (m <- manifest ; cp <- m.attrs.get(Name.CLASS_PATH) if !cp.isBlank()) yield cp
+ for (m <- manifest ; cp <- m.attrs.get(Name.CLASS_PATH) if !cp.trim().isEmpty()) yield cp
54
def classPathElements: List[String] = classPathString match {
55
case Some(s) => s.split("\\s+").toList
56
case _ => Nil
0 commit comments