diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-02-24 01:17:01 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-02-24 01:17:01 +0000 |
commit | 77a6cfbb8aad38be3d323f628681b0359f38f38e (patch) | |
tree | d332cb72abaaf71ed5580181494b0dd19ad36e59 /java/test/Ice/objects/InitialI.java | |
parent | certs (diff) | |
download | ice-77a6cfbb8aad38be3d323f628681b0359f38f38e.tar.bz2 ice-77a6cfbb8aad38be3d323f628681b0359f38f38e.tar.xz ice-77a6cfbb8aad38be3d323f628681b0359f38f38e.zip |
adding ice_preMarshal/ice_postUnmarshal, and tests in Ice/objects
Diffstat (limited to 'java/test/Ice/objects/InitialI.java')
-rw-r--r-- | java/test/Ice/objects/InitialI.java | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/java/test/Ice/objects/InitialI.java b/java/test/Ice/objects/InitialI.java index 13504dd5b01..62fe6ff019a 100644 --- a/java/test/Ice/objects/InitialI.java +++ b/java/test/Ice/objects/InitialI.java @@ -18,10 +18,10 @@ public final class InitialI extends Initial InitialI(Ice.ObjectAdapter adapter) { _adapter = adapter; - _b1 = new B(); - _b2 = new B(); - _c = new C(); - _d = new D(); + _b1 = new BI(); + _b2 = new BI(); + _c = new CI(); + _d = new DI(); _b1.theA = _b2; // Cyclic reference to another B _b1.theB = _b1; // Self reference. @@ -50,6 +50,10 @@ public final class InitialI extends Initial public void getAll(BHolder b1, BHolder b2, CHolder c, DHolder d, Ice.Current current) { + _b1.preMarshalInvoked = false; + _b2.preMarshalInvoked = false; + _c.preMarshalInvoked = false; + _d.preMarshalInvoked = false; b1.value = _b1; b2.value = _b2; c.value = _c; @@ -59,24 +63,37 @@ public final class InitialI extends Initial public B getB1(Ice.Current current) { + _b1.preMarshalInvoked = false; + _b2.preMarshalInvoked = false; + _c.preMarshalInvoked = false; return _b1; } public B getB2(Ice.Current current) { + _b1.preMarshalInvoked = false; + _b2.preMarshalInvoked = false; + _c.preMarshalInvoked = false; return _b2; } public C getC(Ice.Current current) { + _b1.preMarshalInvoked = false; + _b2.preMarshalInvoked = false; + _c.preMarshalInvoked = false; return _c; } public D getD(Ice.Current current) { + _b1.preMarshalInvoked = false; + _b2.preMarshalInvoked = false; + _c.preMarshalInvoked = false; + _d.preMarshalInvoked = false; return _d; } |