File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ void java_class_loader_limitt::setup_class_load_limit(
24
24
// '@' signals file reading with list of class files to load
25
25
use_regex_match = java_cp_include_files[0 ] != ' @' ;
26
26
if (use_regex_match)
27
+ {
27
28
regex_matcher=std::regex (java_cp_include_files);
29
+ debug () << " Limit loading to classes matching : " << java_cp_include_files
30
+ << eom;
31
+ }
28
32
else
29
33
{
30
34
assert (java_cp_include_files.length ()>1 );
@@ -54,7 +58,10 @@ bool java_class_loader_limitt::load_class_file(const std::string &file_name)
54
58
if (use_regex_match)
55
59
{
56
60
std::smatch string_matches;
57
- return std::regex_match (file_name, string_matches, regex_matcher);
61
+ if (std::regex_match (file_name, string_matches, regex_matcher))
62
+ return true ;
63
+ debug () << file_name + " discarded since not matching loader regexp" << eom;
64
+ return false ;
58
65
}
59
66
else
60
67
// load .class file only if it is in the match set
You can’t perform that action at this time.
0 commit comments