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

VM reaction to repeating call of defineClass() is not defined

    XMLWordPrintable

Details

    • vm
    • sparc
    • solaris_2.4

    Description



      Name: akC45999 Date: 12/01/98



      The specification of java.lang.ClassLoader.DefineClass() (both in API and VM doc)
      does not define which exception (if any) must be thrown when the attempt is made
      to define a class which is already loaded.

      In this case different JDK versions demonstrate different reactions:
      1) JDK-116a throws ClassFormatError
      2) JDK-1.2-U throws LinkageError

      We know some licensees do not throw any exceptions and allow to rewrite
      already loaded class.

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

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

      Attachments

        Activity

          People

            gbrachasunw Gilad Bracha (Inactive)
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: