My Oracle Support Banner

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 later
Information 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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.