Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: What happens when format gets a wrong argument Date: Thu, 18 Aug 2016 23:01:30 +0200 Organization: Decebal Computing Lines: 12 Message-ID: <87eg5lkd05.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="29276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jMo74dPynn77slXzspHvMhdCiso2OvE0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:PXT368m9Ufzmk4Vucl+Fz5/svyc= sha1:szIvhIWB0f4+SndOnwcpKPSlNOQ= Xref: csiph.com comp.lang.java.programmer:35394 I had a function in ScheduledExecutorService where I changed a parameter for format from long to double, but I forgot to change the format string. The result was that the function gets an unchecked IllegalFormatConversionException and silently terminated on the format statement. Is this normal? And where do I find a good description about this? Is there a way to get things automatically logged? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof