Re: Revisiting "lost codebases"
cowwoc <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Which brings up the question: Does anyone have a better idea for how to
determine whether two classes are the same version? One can't even hash
the source-code because whitespace could have changed.
I define "same version" meaning that the interface *and* the
implementation is the same.
Gili
Gregg Wonderly wrote:
> cowwoc wrote:
>> Mark Brouwer wrote:
>>
>>> I haven't given it much though but I doubt whether a digest calculated
>>> based on the bytecode is a proper mechanism for specifying a version of
>>> a class. I'm no bytecode expert but I think you can have a 100%
>>> compatible class definitions for which the bytecode can differ due to
>>> different compilers, etc.
>>
>> I thought of that as well. I think for now this is a reasonable
>> limitation until I find a better way (if one exists). However the class
>> version is generated, I suspect that the original owner of the code will
>> compile the class once and pass it around to other nodes. Those nodes
>> in-turn are unlikely to recompile it. As such it is unlikely that one
>> will run across the same version of the same class having different
>> bytecode. I guess we'll discover whether this assumption is true when I
>> try running "in the wild".
>
> In open source Java applications, with mobile code, you should always think
> about the issue of "standard interfaces" and "standard base classes", which
> might be released in source form on the web, and then used to build
> distributed
> applications with mobile code. I don't know enough about what you've
> done to
> say whether there is a real issue, or not.
>
> Gregg Wonderly
>
> --------------------------------------------------------------------------
> Getting Started: http://www.jini.org/wiki/Category:Getting_Started
> Community Web Site: http://jini.org
> jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
> Unsubscribing: email "signoff JINI-USERS" to [email protected]
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to [email protected]
signature.asc
(application/pgp-signature, 250 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGQz7XIC8Z3eiKRrQRAtlrAJ0V6t/vrbuytpbsMNlsg+PTOKdibQCbBXoZ C4X2SRBfKlcxgoiwPAYa3WI= =jx4b -----END PGP SIGNATURE-----