[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite loop
From: |
Thomas Zander |
Subject: |
Re: Infinite loop |
Date: |
Wed, 16 Nov 2005 13:46:32 +0100 |
User-agent: |
KMail/1.9 |
On Wednesday 16 November 2005 12:56, Gary Benson wrote:
> Where "domain" is a java.security.ProtectionDomain, whose toString()
> method calls System.getProperty("line.separator"). If your security
> policy denies read access to that system property then it's going to
> end up trying to throw the same AccessControlException and failing to
> access line.separator again, ad infinitum (until you run out of
> stack).
I'd say that the toString should never throw that exception (the spec does
not do that either).
So either catch it in the toString or default to '\n'
--
Thomas Zander
pgpQq4o1xqyYl.pgp
Description: PGP signature
Infinite loop, Gary Benson, 2005/11/16
Re: Infinite loop,
Thomas Zander <=