Bug#356805: classpath: missing java.lang.Thread.UncaughtExceptionHandler interface

Mark Wielaard mark at klomp.org
Wed Apr 12 12:09:00 UTC 2006


The following was added upstream:

2006-04-12  Mark Wielaard  <mark at klomp.org>

    Port UncaughtExceptionHandler support from generics branch.
    * NEWS: Document Thread.UncaughtExceptionHandler VMThread change.

2006-04-12  Andrew John Hughes  <gnu_andrew at member.fsf.org>

    * java/lang/Thread.java:
    (setUncaughtExceptionHandler(UncaughtExceptionHandler):
    Added docs and security check.
    (getUncaughtExceptionHandler()): Documented.
    (setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler):
    Added docs and security check.
    (getDefaultUncaughtExceptionHandler()): Documented.
    (getId()): Documented.

2006-04-12  Tom Tromey  <tromey at redhat.com>

    * vm/reference/java/lang/VMThread.java (run): Use thread's
    uncaught handler.
    * java/lang/Thread.java (defaultHandler): New field.
    (setDefaultUncaughtExceptionHandler,
    getDefaultUncaughtExceptionHandler, setUncaughtExceptionHandler,
    getUncaughtExceptionHandler): New methods.
    * java/lang/ThreadGroup.java (ThreadGroup): Implements
    UncaughtExceptionHandler.
    (uncaughtException): Use getDefaultUncaughtExceptionHandler.

Note that for full UncaughtExceptionHandler you also need a runtime with
an updated VMThread support as described in the NEWS file. But the patch
will make things compile and mostly work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UncaughtExceptionHandler.patch
Type: text/x-patch
Size: 10015 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20060412/97d00ef5/UncaughtExceptionHandler.bin


More information about the pkg-java-maintainers mailing list