libgcj/2737: User-defined thrown exception is not found

jddahl jddahl@micron.com
Thu Jun 21 10:26:00 GMT 2001


Thanks for all your help.  I'm up and running.  I would love to document
this for others if you think it would be useful.  Let me know who to
contact, etc.

Thanks again,
Jeff

> -----Original Message-----
> From: Tom Tromey [ mailto:tromey@redhat.com ]
> Sent: Thursday, June 21, 2001 10:33 AM
> To: jddahl
> Cc: 'Jeff Sturm'; gcc-bugs@gcc.gnu.org
> Subject: Re: libgcj/2737: User-defined thrown exception is not found
> 
> 
> >>>>> ">" == jddahl  <jddahl@micron.com> writes:
> 
> JeffS> The main advantage of having class files available is that gcj
> JeffS> can parse them much faster than source files.
> 
> >> Why do you compile ".java -> .class" if you then compile straight
> >> from ".java -> .o"?
> 
> Jeff (Sturm) already answered this:
> 
> JeffS> The main advantage of having class files available is that gcj
> JeffS> can parse them much faster than source files.
> 

Still fuzzy on this concept.  Are you using the .class files at all when you
go from .java to .o?

> >> TEST:
> >> gcj --encoding=UTF-8 -c -I/u/jddahl/java/sources -o Test.o
> >> /u/jddahl/java/sources/test/core/InitializationException.java
> >> /u/jddahl/java/sources/test/core/LotNumber.java Test.java
> 
> You're putting the code from both these .java files into Test.o.
> Don't do that!
> 
> Treat it just like C.  Compile each .java file separately with `-c'.
> Then link all the .o files together.
> 
> Tom
> 



More information about the Gcc-bugs mailing list