diff --git a/src/avian/classpath-common.h b/src/avian/classpath-common.h index 6738c7ed4..78328caca 100644 --- a/src/avian/classpath-common.h +++ b/src/avian/classpath-common.h @@ -104,7 +104,7 @@ void arrayCopy(Thread* t, throwNew(t, GcIndexOutOfBoundsException::Type); } } else if (LIKELY(length < 0)) { - throwNew(t, GcNegativeArraySizeException::Type, "%d", length); + throwNew(t, GcIndexOutOfBoundsException::Type, "%d", length); return; } else { return;