From 19f0ace8faec723b1a5211df93f7d44b6d726e9b Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 2 Jul 2015 19:40:47 +0300 Subject: [PATCH] Fix https://github.com/konsoletyper/teavm/issues/132 --- .../main/java/org/teavm/classlib/java/util/logging/TLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java index 73e7224a6b..bf33555f27 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/logging/TLogger.java @@ -86,7 +86,7 @@ private TString format(TString message, Object[] params) { index = next; continue; } - int paramIndex = TInteger.parseInt(message.substring(index, next - 1)); + int paramIndex = TInteger.parseInt(message.substring(paramStart, next)); if (paramIndex >= params.length) { sb.append(message.substring(index, next)); index = next;