@@ -17,9 +17,10 @@ Author: Daniel Kroening, kroening@kroening.com
1717#include < util/message.h>
1818#include < util/fixed_keys_map_wrapper.h>
1919
20+ #include " jar_file.h"
21+ #include " jar_pool.h"
2022#include " java_bytecode_parse_tree.h"
2123#include " java_class_loader_limit.h"
22- #include " jar_file.h"
2324
2425class java_class_loadert :public messaget
2526{
@@ -99,20 +100,8 @@ class java_class_loadert:public messaget
99100 return class_map.at (class_name).front ();
100101 }
101102
102- // / Load jar archive or retrieve from cache if already loaded
103- // / \param filename name of the file
104- jar_filet &jar_pool (const std::string &filename);
105-
106- // / Load jar archive or retrieve from cache if already loaded
107- // / \param buffer_name name of the original file
108- // / \param pmem memory pointer to the contents of the file
109- // / \param size size of the memory buffer
110- // / Note that this mocks the existence of a file which may
111- // / or may not exist since the actual data bis retrieved from memory.
112- jar_filet &jar_pool (
113- const std::string &buffer_name,
114- const void *pmem,
115- size_t size);
103+ // / a cache for jar_filet, by path name
104+ jar_poolt jar_pool;
116105
117106private:
118107 // / Either a regular expression matching files that will be allowed to be
@@ -134,8 +123,6 @@ class java_class_loadert:public messaget
134123 // / The jar_indext for each jar file we've read
135124 std::map<std::string, jar_indext> jars_by_path;
136125
137- // / Jar files that have been loaded
138- std::map<std::string, jar_filet> m_archives;
139126 // / Map from class names to the bytecode parse trees
140127 parse_tree_with_overridest_mapt class_map;
141128
0 commit comments