Dynamic class loading

Per Bothner bothner@cygnus.com
Fri Apr 30 16:05:00 GMT 1999


> While we're on the topic, what about they other way around? What are your
> ideas on generating a native interface for a compiled object file?

I don't understand the question.  What is a "native interface for a 
compiled object file"?

Notice that compiled code has full support for reflection.  (We haven't
implemented Method.invoke yet, but we hope to soon.)  Both compiled
code and interpreted code will use the same reflective interface.

> The hard part is getting jni to recognize java::lang::Object as a jni
> jobject.

No, it's trivial:  That's how jobject is defined.

> Could the compiled object file extend both? This would be usefull
> for native compiling a small piece of processor intensive java code without
> having compiling the whole program.

Oh, you mean:  Could a pre-compiled class extend an interpreted class?
No reason why not, in principle, though I don't think it makes
much sense.

	--Per Bothner
bothner@cygnus.com     http://www.cygnus.com/~bothner




More information about the Java mailing list