[2615] in java-interest

home help back first fref pref prev next nref lref last post

Re: passing object

daemon@ATHENA.MIT.EDU (neudeck.arthur@ch.swissbank.com)
Fri Oct 6 05:23:05 1995

From: neudeck.arthur@ch.swissbank.com
Date: Fri, 6 Oct 1995 08:12:37 --100
To: Thomas.Ball@Eng.Sun.COM
Cc: java-interest@java.Eng.Sun.COM, neudeca@ch.swissbank.com

Hi Tom ...

> No, there is not.  Object copying is a hard problem, one many papers have
> been and will be written.  There is no generic support for it in Java.
Can you imagine some of those papers ?
Actually I'm looking for a way to implement this feature in Java.
Do you know somebody, who has already worked on that problem?

> 
> Application-specific object copying is easier -- you have to decant and
> recant the object's stateful information by passing it as a stream of
> primitive types.  The exception is Strings, which can be passed using
> readUTF and writeUTF.  Arrays are best sent by first sending the array
> length, followed by each element -- this way the receiver can allocate
> the correctly-sized array before initializing each element.  Note that
> you also own the burden of synchonization between these objects.

Thanks,
Arthy

.---------------------------------------------------------------------.
|  Arthur Neudeck        Tel:   +41-61-288 94 44                      |
|  SYSTOR AG             Fax:   +41-61-288 42 24                      |
|  Applications - ARS    Email: neudeck.arthur@ch.swissbank.com       |
|  Hochstrasse 16        X.400: C=CH A=400NET P=SWISSBANK S=NEUDECK   |
|  CH-4002 Basel                G=ARTHUR  DDA=ID=T019535              |
|  Switzerland           WWW:   http://www.systor.ch/systor/          |
|---------------------------------------------------------------------|
|  Current Project:      Thesis about Object Mobility                 |
`---------------------------------------------------------------------'
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post