native vs class Classes
Tom Tromey
tromey@redhat.com
Tue Nov 30 23:08:00 GMT 2004
>>>>> "Stéphane" == Stéphane Konstantaropoulos <stephane@cs.york.ac.uk> writes:
Stéphane> When you load a class from a natively compiled java program by doing:
Stéphane> Class.forName("com.mysql.jdbc.Driver");
Stéphane> It loads the .class file -- from the classpath.
Stéphane> How about all the classes that are referenced in that class? does it
Stéphane> need to load them too? Or can it look them up in the
Stéphane> natively compiled library (I mean mostly the standard
Stéphane> classes that are in libgcj.so)?
Historically the way it has worked is that interpreted classes can
refer to compiled classes, but not vice versa. The new binary
compatibility ABI (just merged in, will appear in GCC 4.0) lets you
freely intermix interpreted and compiled code.
Stéphane> Does someone have some documentation on how class loading works in
Stéphane> libgcj somewhere?
There is some information in the gcj manual, but probably not enough.
This is a good time to fix the manual, if you've got suggestions...
Tom
More information about the Java
mailing list