From a7e69cc8e2c0047e6be3c7d4fe49622de1806f78 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 15 Jun 2015 20:47:45 +0300 Subject: [PATCH] Fix parsing of infinity value --- .../main/java/org/teavm/classlib/java/text/TDecimalFormat.java | 1 + 1 file changed, 1 insertion(+) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/text/TDecimalFormat.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/text/TDecimalFormat.java index a91286a7a..37aac60f6 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/text/TDecimalFormat.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/text/TDecimalFormat.java @@ -245,6 +245,7 @@ public class TDecimalFormat extends TNumberFormat { position.setErrorIndex(index); return null; } + position.setIndex(index); return positive ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY; }