Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4502973

SecureClassLoader.defineClass does not specify behavior for invalid parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • None
    • beta3
    • sparc
    • solaris_2.6



      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.

      ======================================================================

            duke J. Duke
            anssunw Ans Ans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: