This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: awt problem on darwin


Andreas Tobler wrote:

> What do you mean with exception printing? Like this one?
>
> [titanium:~/tst] andreast% gij closure_test.java
> Exception in thread "main" 


Right, but you should at least get something like:

[bryce@kawarau test]$ ./a.out
Exception in thread "main" java.lang.NullPointerException

or even better, a stack trace:

$ ./a.out
Exception in thread "main" java.lang.NullPointerException
   at 0x080489c1: Foo.bar() (/home/bryce/test/Foo.java:11)
   at 0x0804898d: Foo.main(String[]) (/home/bryce/test/Foo.java:7)
   at 0x4025e008: gnu.gcj.runtime.FirstThread.call_main() 
(/home/bryce/gcc/lib/libgcj.so.3)
   at 0x402e48f8: gnu.gcj.runtime.FirstThread.run() 
(/home/bryce/gcc/lib/libgcj.so.3)
...

The stack trace may take some hacking to implement on Darwin, but 
Throwable.printStackTrace should at least calling toString() on the 
exception object that got thrown - its a bug if it isn't.

regards

Bryce.



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