mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8223400: Replace some enums with static const members in hotspot/runtime
Reviewed-by: iklam, coleenp
This commit is contained in:
parent
8bdffc5f7e
commit
41bd7c5e76
2 changed files with 12 additions and 14 deletions
|
@ -2308,7 +2308,7 @@ JVM_ENTRY(void, JVM_GetClassCPTypes(JNIEnv *env, jclass cls, unsigned char *type
|
|||
ConstantPool* cp = InstanceKlass::cast(k)->constants();
|
||||
for (int index = cp->length() - 1; index >= 0; index--) {
|
||||
constantTag tag = cp->tag_at(index);
|
||||
types[index] = (tag.is_unresolved_klass()) ? JVM_CONSTANT_Class : tag.value();
|
||||
types[index] = (tag.is_unresolved_klass()) ? (unsigned char) JVM_CONSTANT_Class : tag.value();
|
||||
}
|
||||
}
|
||||
JVM_END
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue