[Mono-list] Mono/Java interop?

Mathias Hasselmann mathias.hasselmann@gmx.de
Thu, 7 Nov 2002 19:54:57 +0100 (CET)


On Thu, 7 Nov 2002, Norbert Harrer wrote:

> Thursday, November 07, 2002, 3:41:30 PM, you wrote:
> 
> MH>         At least for Java on Windows it should be easy to integrate .Net
> MH> objects into Java applications: .NET objects on windows automatically 
> MH> are COM objects. Java on Windows is capable to instanciate COM 
> MH> objects... Something I doubt is the assumption you could have Java 
> MH> objects in .Net apps without being able to create .Net objects in Java 
> MH> apps....
> 
> OH ohhh. .NET objects on windows automatically are COM objects? That's
> not true. There is no COM in .net. But you can wrap up your .net
> classes as COM objects. But like I said before. I would hate to go
> through COM to get from .net to java. Would be nice to leave .net as
> COM free as it is. It's bad enough that we have to fight all that COM
> legacy stuff with COM interop (thank god it's possibly though). :-D

	Yes, I've mixed something up I picked up when reading the JNI
spec. No, even on windows Java objects are not automatically COM objects.  
Whilest they could be: The virtual tables of Java objects (mapped to JNI?)  
and such have the same layout as COM objects --- according to Sun's docs
I've read more carefully right now. Reasons for not make them real COM
objects on Windows just are of political nature (from what I've
interpreting into some of the text the JNI docs).

Ciao,
Mathias