VirtualMachine.allClasses() Does Not Return a Loaded Class
(Doc ID 2487540.1)
Last updated on MARCH 31, 2023
Applies to:
Java SE JDK and JRE - Version 8 and laterInformation in this document applies to any platform.
Symptoms
The Java Debug Interface (JDI) method VirtualMachine.allClasses() does not return a loaded class when the class is not initialized. This prevents reloading of the uninitialized class. It is expected that the loaded class is returned whether the class is initialized or not.
The issue can be reproduced using the below test code called "Main.java" with the following steps:
1. Compile and run the test program
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |