Name: asR10047 Date: 09/14/2001
The specification for java.security.SecureClassLoader.defineClass() method
keep silence about its default behaviour if some of parameters are invalid.
Its parent class java.lang.ClassLoader which method defineClass() is
overridden by SecureClassLoader.defineClass() specifies runtime exception
to handle invalid parameters (IndexOutOfBoundsException). It seems
SecureClassLoader.defineClass() should also explicitly specify
what runtime exception may be thrown if any of parameters is invalid.
Lack of specification causes JCK test
api/java_security/SecureClassLoader/SecureClassLoaderTests.html#defineClassTest[defineClass009]
fail on implementations where either other then
ArrayIndexOutOfBoundsException runtime exception thrown or no exception
thrown at all.
======================================================================