This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCJ not using java.lang.Exception in libgcj.jar??



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
>
> OK.
>
> 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
>
> java.lang.IllegalArgumentException
>    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
> advantage!?
>
> If so this might be a problem.. I will really have to dig in an find out how do
> do this...
>
> Kevin
>
> - --
> Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
>         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
>
> iD8DBQE6cwLPAwM6xb2dfE0RAly9AJoDvZYMqCtNwn4vfCo2/x/U0kB/iACffDFp
> hmPvVGNWDft7EtQvd7VG6Ok=
> =X8lD
> -----END PGP SIGNATURE-----
>
> Rule Psix Panama Ft. Meade counter-intelligence NSA nuclear Qaddafi kibo smuggle
>



> assassination Treasury Semtex munitions Legion of Doom SDI


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]