X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tests%2Fregression%2Fresolving%2Ftest_instance_subtype_violated.java;h=f58cc17fc767f5fd67a4884d682a5b83a9a5dc9e;hb=a509cfd2052999117c0f9e05817e4a073907d7ce;hp=875dd9da090bdec2131a6ba1bb449312aebf7b01;hpb=d7232ea078260f6e54f9a2ca706019e566eb2952;p=cacao.git diff --git a/tests/regression/resolving/test_instance_subtype_violated.java b/tests/regression/resolving/test_instance_subtype_violated.java index 875dd9da0..f58cc17fc 100644 --- a/tests/regression/resolving/test_instance_subtype_violated.java +++ b/tests/regression/resolving/test_instance_subtype_violated.java @@ -25,29 +25,29 @@ public class test_instance_subtype_violated { ld3.addParentDelegation("java.lang.String"); - // loading BarPassFoo + // loading and linking BarPassFoo ct.expect("requested", ld2, "BarPassFoo"); + ct.expectLoadFromSystem(ld2, "java.lang.Object"); ct.expect("defined", ld2, ""); ct.expect("loaded", ld2, ""); Class cls = ct.loadClass(ld2, "BarPassFoo"); - // linking BarPassFoo - ct.expectLoadFromSystem(ld2, "java.lang.Object"); - // executing BarPassFoo.passDerivedFooInstance: new DerivedFoo - ct.expectDelegationAndDefinition(ld2, ld3, "DerivedFoo"); + ct.expectDelegation(ld2, ld3, "DerivedFoo"); // linking (ld3, DerivedFoo) ct.expect("requested", ld3, "Foo"); - ct.expect("defined", ld3, ""); ct.expectLoadFromSystem(ld3, "java.lang.Object"); + ct.expect("defined", ld3, ""); + ct.expectDelegationDefinition(ld2, ld3, "DerivedFoo"); // resolving Foo.virtualId // the deferred subtype check ((ld2, DerivedFoo) subtypeof (ld2, Foo)) is done - ct.expectDelegationAndDefinition(ld2, ld1, "Foo"); + ct.expectDelegation(ld2, ld1, "Foo"); // ...linking (ld2, Foo) == (ld1, Foo) ct.expectLoadFromSystem(ld1, "java.lang.Object"); + ct.expectDelegationDefinition(ld2, ld1, "Foo"); // the subtype constraint ((ld2, DerivedFoo) subtypeof (ld2, Foo)) is violated ct.expect("exception", "java.lang.LinkageError", "");