Skip to content

Commit a695814

Browse files
author
Joel Allred
authored
Merge pull request diffblue#1986 from thk123/revert/1816/overlay-classes
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.
2 parents 58beeb4 + 9933b58 commit a695814

33 files changed

+315
-870
lines changed

regression/cbmc-java/generics_type_param/test.desc

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ GenericFields$SimpleGenericField.class
33
--cover location --function GenericFields\$SimpleGenericField.foo --verbosity 10
44
^EXIT=0$
55
^SIGNAL=0$
6-
Parsing class AWrapper
7-
Parsing class FWrapper
8-
Parsing class IWrapper
6+
Reading class AWrapper
7+
Reading class FWrapper
8+
Reading class IWrapper
99
--
1010
failed to load class \`AWrapper\'
1111
failed to load class \`FWrapper\'
-228 Bytes
Binary file not shown.

regression/cbmc-java/invalid_classpath/Test.java

-3
This file was deleted.

regression/cbmc-java/invalid_classpath/test-jar.desc

-10
This file was deleted.

regression/cbmc-java/invalid_classpath/test-path.desc

-10
This file was deleted.
-583 Bytes
Binary file not shown.

regression/cbmc-java/overlay-class/Test.java

-14
This file was deleted.

regression/cbmc-java/overlay-class/annotations/com/diffblue/OverlayClassImplementation.java

-4
This file was deleted.

regression/cbmc-java/overlay-class/annotations/com/diffblue/OverlayMethodImplementation.java

-4
This file was deleted.
Binary file not shown.

regression/cbmc-java/overlay-class/correct-overlay/Test.java

-14
This file was deleted.

regression/cbmc-java/overlay-class/correct-test.desc

-17
This file was deleted.

regression/cbmc-java/overlay-class/duplicate-test.desc

-17
This file was deleted.

regression/cbmc-java/overlay-class/format_classpath.sh

-12
This file was deleted.

regression/cbmc-java/overlay-class/misordered-test.desc

-16
This file was deleted.
Binary file not shown.

regression/cbmc-java/overlay-class/unmarked-overlay/Test.java

-11
This file was deleted.

regression/cbmc-java/overlay-class/unmarked-test.desc

-16
This file was deleted.
Binary file not shown.

regression/cbmc-java/provide_object_implementation/java/lang/Object.java

-33
This file was deleted.

regression/cbmc-java/provide_object_implementation/test.desc

-10
This file was deleted.

src/java_bytecode/ci_lazy_methods.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ bool ci_lazy_methodst::operator()(
8585
reachable_classes.push_back(main_class);
8686
else
8787
reachable_classes = main_jar_classes;
88-
for(const irep_idt &class_name : reachable_classes)
88+
for(const auto &classname : reachable_classes)
8989
{
90-
const auto &methods =
91-
java_class_loader.get_original_class(class_name).parsed_class.methods;
90+
const auto &methods=
91+
java_class_loader.class_map.at(classname).parsed_class.methods;
9292
for(const auto &method : methods)
9393
{
94-
const irep_idt methodid =
95-
"java::" + id2string(class_name) + "." + id2string(method.name)
96-
+ ":" + id2string(method.descriptor);
94+
const irep_idt methodid="java::"+id2string(classname)+"."+
95+
id2string(method.name)+":"+
96+
id2string(method.descriptor);
9797
method_worklist2.push_back(methodid);
9898
}
9999
}

0 commit comments

Comments
 (0)