File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 26
26
symbol_tablet load_java_class (
27
27
const std::string &java_class_name,
28
28
const std::string &class_path)
29
+ {
30
+ return load_java_class (
31
+ java_class_name, class_path, new_java_bytecode_language ());
32
+ }
33
+
34
+ symbol_tablet load_java_class (
35
+ const std::string &java_class_name,
36
+ const std::string &class_path,
37
+ std::unique_ptr<languaget> java_lang)
29
38
{
30
39
// We don't expect the .class suffix to allow us to check the name of the
31
40
// class
@@ -39,8 +48,6 @@ symbol_tablet load_java_class(
39
48
40
49
symbol_tablet new_symbol_table;
41
50
42
- std::unique_ptr<languaget>java_lang (new_java_bytecode_language ());
43
-
44
51
std::istringstream java_code_stream (" ignored" );
45
52
null_message_handlert message_handler;
46
53
Original file line number Diff line number Diff line change 14
14
#define CPROVER_TESTING_UTILS_LOAD_JAVA_CLASS_H
15
15
16
16
#include < util/symbol_table.h>
17
+ #include < util/language.h>
18
+ #include < goto-programs/goto_model.h>
17
19
18
20
symbol_tablet load_java_class (
19
21
const std::string &java_class_name,
20
22
const std::string &class_path);
21
23
24
+ symbol_tablet load_java_class (
25
+ const std::string &java_class_name,
26
+ const std::string &class_path,
27
+ std::unique_ptr<languaget> java_lang);
28
+
22
29
#endif // CPROVER_TESTING_UTILS_LOAD_JAVA_CLASS_H
You can’t perform that action at this time.
0 commit comments