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; }