Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: checked exception thrown from an initializer ok? Date: Tue, 13 Jan 2015 22:52:35 +0000 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="ce36d48819f213c7718672670ff29ac1"; logging-data="2611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WnCZDTYZOp51acopo3fDm7pB+BxwhElM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: Cancel-Lock: sha1:/fTY/qGEJUf0ZuemYTkaMCyEO5M= Xref: csiph.com comp.lang.java.programmer:30698 On 13/01/15 22:40, Andreas Leitgeb wrote: > public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); > > What surprises me is, that eclipse accepts it without barfing > about the unhandled exception. > I guess I should be worried, or hope for an alternative interpretation > of this text that didn't yet occur to me... The method does not throw any checked exceptions. -- ss at comp dot lancs dot ac dot uk