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

5.2: Inappropriate mention of bootstrap class loader for initial class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • specification
    • vm

      According to the assertion jvms-5.2-100, the initial class which contains the main method should be loaded using the bootstrap class loader. But actually, the initial class loading happen using AppClassLoader. This was tested using the attached Java code.

      Assertion:
      The Java Virtual Machine starts up by creating an initial class or interface using the bootstrap class loader (§5.3.1). The Java Virtual Machine then links the initial class or interface, initializes it, and invokes the public static method void main(String[]). The invocation of this method drives all further execution. Execution of the Java Virtual Machine instructions constituting the main method may cause linking (and consequently creation) of additional classes and interfaces, as well as invocation of additional methods. jvms-5.2-100

            abuckley Alex Buckley
            sramasamy Sankar Ramasamy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: