This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: class.forName() and java.sql
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: "Andrew Haley" <aph at redhat dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: Mon, 27 Jan 2003 17:17:48 +0100
- Subject: RE: class.forName() and java.sql
>>>> 1. class.forName() doesn't work reliably on any system if an object
>>>> is statically linked.
As Lars wrote, classes will only be linked if they are referenced
explicitly. So, adding an explicit reference does the trick. I actually like
the way it works, because it reduces the number of unused classes in the
statically linked executable.
In that respect, it does work reliably (unless there are other issues that I
don't know of?).