This is an automated email from the ASF dual-hosted git repository.
olabusayo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-daffodil.git
The following commit(s) were added to refs/heads/master by this push:
new f388c5a Fixes format string
f388c5a is described below
commit f388c5a0da8ee609cce236bb6e69914168c1f1a2
Author: olabusayoT <[email protected]>
AuthorDate: Tue Jan 28 13:29:52 2020 -0500
Fixes format string
-- unable to trigger ClassNotFoundException in a test
DAFFODIL-2245
---
.../src/main/scala/org/apache/daffodil/compiler/Compiler.scala | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git
a/daffodil-core/src/main/scala/org/apache/daffodil/compiler/Compiler.scala
b/daffodil-core/src/main/scala/org/apache/daffodil/compiler/Compiler.scala
index 674878b..979b3d4 100644
--- a/daffodil-core/src/main/scala/org/apache/daffodil/compiler/Compiler.scala
+++ b/daffodil-core/src/main/scala/org/apache/daffodil/compiler/Compiler.scala
@@ -315,11 +315,8 @@ class Compiler(var validateDFDLSchemas: Boolean = true)
val cpString =
if (Misc.classPath.length == 0) " empty."
else ":\n" + Misc.classPath.mkString("\n\t")
- val msg = "%s\nThe class may not exist in this Java JVM version (%s),"
+
- "or it is missing from the classpath which is%s".format(
- cnf.getMessage(),
- scala.util.Properties.javaVersion,
- cpString)
+ val fmtMsg = "%s\nThe class may not exist in this Java JVM version
(%s), or it is missing from the classpath which is%s"
+ val msg = fmtMsg.format(cnf.getMessage(),
scala.util.Properties.javaVersion, cpString)
throw new InvalidParserException(msg, cnf)
}
}