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

ClassLoader.defineClass(String, byte[], int, int) name parameter unclear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 08/18/99


      In the JavaDoc description of method
      ClassLoader.defineClass(String name, byte[] b, int off, int len),
      the semantics of the class name parameter are incompletely
      specified.

      The method description does not mention the name parameter,
      and the parameter description says only:

         name - the expected name of the class, or null if not known,
            using '.' and not '/' as the separator and without a
            trailing ".class" suffix.

      Specifically, the documentation does not say what it done with
      the name, what concrete conditions must be satisfied (the
      loaded class must match it?), or what happens if those
      conditions are not satisfied.



      (Additionally, the SecurityException case description says
      "a different set of certificates then this class.")



      DSB/DFI
      (Review ID: 94064)
      ======================================================================

            shommel Scott Hommel (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: