Skip to content

Commit 4c900d1

Browse files
author
Owen
committed
Do not quote classes we fail to load
The error message used to be failed to load class 'Test' This commit makes it failed to load class Test The reasoning is that there is no need to quote the class name, it is totally clear where it starts and where it ends.
1 parent f0c0151 commit 4c900d1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

jbmc/regression/jbmc/classpath-invalid/test-jar.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Test.class
44
^EXIT=6$
55
^SIGNAL=0$
66
^the program has no entry point$
7-
^failed to load class 'Test'$
7+
^failed to load class Test$
88
--
99
--
1010
symex-driven lazy loading should emit "the program has no entry point" but currently doesn't

jbmc/regression/jbmc/classpath-invalid/test-path.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Test.class
44
^EXIT=6$
55
^SIGNAL=0$
66
^the program has no entry point$
7-
^failed to load class 'Test'$
7+
^failed to load class Test$
88
--
99
--
1010
symex-driven lazy loading should emit "the program has no entry point" but currently doesn't

jbmc/regression/jbmc/generics_type_param/test.desc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Reading class AWrapper
77
Reading class FWrapper
88
Reading class IWrapper
99
--
10-
failed to load class \'AWrapper\'
11-
failed to load class \'FWrapper\'
12-
failed to load class \'IWrapper\'
10+
failed to load class AWrapper
11+
failed to load class FWrapper
12+
failed to load class IWrapper

jbmc/src/java_bytecode/java_class_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ java_class_loadert::get_parse_tree(
176176
return parse_trees;
177177

178178
// Not found or failed to load
179-
warning() << "failed to load class \'" << class_name << '\'' << eom;
179+
warning() << "failed to load class " << class_name << eom;
180180
parse_trees.emplace_back(class_name);
181181
return parse_trees;
182182
}

0 commit comments

Comments
 (0)