diff --git a/classpath/java/lang/ArrayIndexOutOfBoundsException.java b/classpath/java/lang/ArrayIndexOutOfBoundsException.java index 1478a62a2e..3ba5fccdec 100644 --- a/classpath/java/lang/ArrayIndexOutOfBoundsException.java +++ b/classpath/java/lang/ArrayIndexOutOfBoundsException.java @@ -23,6 +23,10 @@ public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { this(null, cause); } + public ArrayIndexOutOfBoundsException(int idx) { + this("Array index out of range: " + idx); + } + public ArrayIndexOutOfBoundsException() { this(null, null); } diff --git a/classpath/java/lang/ClassNotFoundException.java b/classpath/java/lang/ClassNotFoundException.java index 86e6b82c8c..361525b917 100644 --- a/classpath/java/lang/ClassNotFoundException.java +++ b/classpath/java/lang/ClassNotFoundException.java @@ -25,4 +25,9 @@ public class ClassNotFoundException extends Exception { public ClassNotFoundException() { this(null, null); } + + public Throwable getException() { + return cause2; + } + }