On Wed, 2005-10-19 at 15:24 +0000, Roman Kennke wrote:
> +    Document doc = (Document) desc;
> +    try
> +      {
> +        kit.read(in, doc, 0);
> +      }
> +    catch (BadLocationException ex)
> +      {
> +        assert false : "BadLocationException must not be thrown here.";
> +      }

I believe something like:

    InternalError ie = new InternalError();
    ie.initCause(ex);
    throw ie;

Is more useful here if this ever happens since you will then get the
original stack trace.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to