From e610c13e6910510dc08a560391bad14f0beaf658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Hohwiller?= Date: Fri, 29 May 2020 23:09:01 +0200 Subject: [PATCH] add int constructor for Java9+ compatibility --- .../teavm/classlib/java/lang/TIndexOutOfBoundsException.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java index a27892c69..8fa33a75c 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java @@ -25,4 +25,8 @@ public class TIndexOutOfBoundsException extends TRuntimeException { public TIndexOutOfBoundsException(String message) { super(message); } + + public TIndexOutOfBoundsException(int index) { + super("Index out of range: " + index); + } }