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

An empty class name mistaken for illegal class name ""

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      We found that when the loadClass(String name) function is called and the class name is empty, hotspot will report an error of “Illegal class name "" in class file”, which is inconsistent with other JVMs. (OpenJ9 will report “Exception in thread "main" java.lang.NoClassDefFoundError”)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the test case linked below.
      https://drive.google.com/drive/folders/1JX3hKFnAoPMHzII71rVmZxf3YPW445ci?usp=sharing

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Exception in thread "main" java.lang.NoClassDefFoundError
      ACTUAL -
      Exception in thread "main" java.lang.ClassFormatError: Illegal class name "" in class file

        Attachments

          Activity

            People

            Assignee:
            sswsharm swati sharma
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: