-
Type:
Enhancement
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: hotspot
https://github.com/openjdk/jdk/blob/76e79dbb3eca5589aae6852c8f55adf0759c714e/src/hotspot/share/classfile/vmClassMacros.hpp#L38-L44
// Each VM class has a short klass name (like Object_klass),
// and a vmSymbol name (like java_lang_Object). Both of these can
// be used to find the vmClassID for this class. The following two
// macros will evaluate to the same value:
//
// VM_CLASS_ID(Object_klass)
// VM_CLASS_ID(java_lang_Object)
This is unnecessarily complicated. There's no reason to have the second variant of the same class ID.
// Each VM class has a short klass name (like Object_klass),
// and a vmSymbol name (like java_lang_Object). Both of these can
// be used to find the vmClassID for this class. The following two
// macros will evaluate to the same value:
//
// VM_CLASS_ID(Object_klass)
// VM_CLASS_ID(java_lang_Object)
This is unnecessarily complicated. There's no reason to have the second variant of the same class ID.