awt problem on darwin

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun May 26 23:57:00 GMT 2002


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.




More information about the Java mailing list