This is the mail archive of the
mailing list for the Java project.
Re: GCJ not using java.lang.Exception in libgcj.jar??
- To: "Kevin A. Burton" <burton at relativity dot yi dot org>
- Subject: Re: GCJ not using java.lang.Exception in libgcj.jar??
- From: Edgar Villanueva <edgar at villanueva dot com>
- Date: Sat, 27 Jan 2001 19:19:57 -0500
- CC: java-discuss at sources dot redhat dot com
- References: <firstname.lastname@example.org>
- Reply-To: edgar at villanueva dot com
To do the equivalent in gcj you whould have to replace the java.lang.Exception code
in libgcj.so. That's where you would actually replace it, not in libgcj.jar
Of course libgcj.jar still needs to be updated.
"Kevin A. Burton" wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> I am trying to "port" JavaCore ( http://javacore.sourceforge.net ) from JDK
> 1.1.8 to GCJ. While everything compiles correctly the installation of JavaCore
> is "tricky" and I wanted to post here to get more information.
> If you look at the UML on the website you can see visually how JavaCore installs
> into the JVM. Basically it replace java.lang.Exception with its own version. I
> know for certain that the java.lang.Exception which I currently have in
> libgcj.jar has been modified correctly. The problem is that even with a
> System.out.println within the constructor of Exception I don't get any output.
> Basically this means that java.lang.Exception is not getting instantiated as
> bytecode but instead is native... correct? I could only find on .jar file
> within my gcc install and there were no other .class files
> Here is the exception
> at 0x4019943a: java::lang::Throwable::Throwable() (/home/burton/gcc/lib/libgcj.so.1)
> at 0x4018daed: java::lang::Exception::Exception() (/home/burton/gcc/lib/libgcj.so.1)
> Could this be the problem? java.lang.Exception under GCJ is native and
> contained in libgcj.so? If so this is strange... I can't see any advantage to
> doing this and I think it might be a Bad Thing. There might be a speed
> If so this might be a problem.. I will really have to dig in an find out how do
> do this...
> - --
> Kevin A. Burton ( email@example.com, firstname.lastname@example.org, email@example.com )
> Cell: 408-910-6145 URL: http://relativity.yi.org ICQ: 73488596
> It is better to die on your feet than to live on your knees!
> - Emiliano Zapata
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
> -----END PGP SIGNATURE-----
> Rule Psix Panama Ft. Meade counter-intelligence NSA nuclear Qaddafi kibo smuggle
> assassination Treasury Semtex munitions Legion of Doom SDI