Skip to content

Commit

Permalink
Merge pull request diffblue#1986 from thk123/revert/1816/overlay-classes
Browse files Browse the repository at this point in the history
Revert overlay classes and follow on fix, which broke a functionality of the `--classpath` option that allows to load several classes having the same name.
  • Loading branch information
Joel Allred authored Mar 29, 2018
2 parents 58beeb4 + 9933b58 commit a695814
Show file tree
Hide file tree
Showing 33 changed files with 315 additions and 870 deletions.
6 changes: 3 additions & 3 deletions regression/cbmc-java/generics_type_param/test.desc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ GenericFields$SimpleGenericField.class
--cover location --function GenericFields\$SimpleGenericField.foo --verbosity 10
^EXIT=0$
^SIGNAL=0$
Parsing class AWrapper
Parsing class FWrapper
Parsing class IWrapper
Reading class AWrapper
Reading class FWrapper
Reading class IWrapper
--
failed to load class \`AWrapper\'
failed to load class \`FWrapper\'
Expand Down
Binary file removed regression/cbmc-java/invalid_classpath/Test.class
Binary file not shown.
3 changes: 0 additions & 3 deletions regression/cbmc-java/invalid_classpath/Test.java

This file was deleted.

10 changes: 0 additions & 10 deletions regression/cbmc-java/invalid_classpath/test-jar.desc

This file was deleted.

10 changes: 0 additions & 10 deletions regression/cbmc-java/invalid_classpath/test-path.desc

This file was deleted.

Binary file removed regression/cbmc-java/overlay-class/Test.class
Binary file not shown.
14 changes: 0 additions & 14 deletions regression/cbmc-java/overlay-class/Test.java

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
14 changes: 0 additions & 14 deletions regression/cbmc-java/overlay-class/correct-overlay/Test.java

This file was deleted.

17 changes: 0 additions & 17 deletions regression/cbmc-java/overlay-class/correct-test.desc

This file was deleted.

17 changes: 0 additions & 17 deletions regression/cbmc-java/overlay-class/duplicate-test.desc

This file was deleted.

12 changes: 0 additions & 12 deletions regression/cbmc-java/overlay-class/format_classpath.sh

This file was deleted.

16 changes: 0 additions & 16 deletions regression/cbmc-java/overlay-class/misordered-test.desc

This file was deleted.

Binary file not shown.
11 changes: 0 additions & 11 deletions regression/cbmc-java/overlay-class/unmarked-overlay/Test.java

This file was deleted.

16 changes: 0 additions & 16 deletions regression/cbmc-java/overlay-class/unmarked-test.desc

This file was deleted.

Binary file not shown.

This file was deleted.

10 changes: 0 additions & 10 deletions regression/cbmc-java/provide_object_implementation/test.desc

This file was deleted.

12 changes: 6 additions & 6 deletions src/java_bytecode/ci_lazy_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ bool ci_lazy_methodst::operator()(
reachable_classes.push_back(main_class);
else
reachable_classes = main_jar_classes;
for(const irep_idt &class_name : reachable_classes)
for(const auto &classname : reachable_classes)
{
const auto &methods =
java_class_loader.get_original_class(class_name).parsed_class.methods;
const auto &methods=
java_class_loader.class_map.at(classname).parsed_class.methods;
for(const auto &method : methods)
{
const irep_idt methodid =
"java::" + id2string(class_name) + "." + id2string(method.name)
+ ":" + id2string(method.descriptor);
const irep_idt methodid="java::"+id2string(classname)+"."+
id2string(method.name)+":"+
id2string(method.descriptor);
method_worklist2.push_back(methodid);
}
}
Expand Down
Loading

0 comments on commit a695814

Please sign in to comment.