-
Bug
-
Resolution: Fixed
-
P4
-
9
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
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