Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Code review needed

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Seth Blumberg <sethb AT pobox.com>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Code review needed
  • Date: Sun, 18 May 2014 11:36:24 -0400

On Sun, May 18, 2014 at 10:46 AM, Elliotte Rusty Harold
<elharo AT ibiblio.org>wrote:

> Thread t = new Thread(job);
>

This will cause the process to be rudely aborted on some managed frameworks
that don't allow user-code-created threads. As in, no chance to catch an
exception. Poor design, but.

You would need an option to disable threading, and have the threaded code
fall back to non-threaded mode if creating a new thread caused a runtime
exception.

--
Seth L. Blumberg <sethb AT pobox.com>




Archive powered by MHonArc 2.6.24.

Top of Page