mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8231844: Enhance type signature characters in classfile_constants.h and improve the JVM to use type signature characters more consistently
Increase the use of type signature constants instead of hard coded characters within the JVM. Co-authored-by: John Rose <john.r.rose@oracle.com> Reviewed-by: coleenp, dholmes, fparain
This commit is contained in:
parent
0192c5a02f
commit
fce4320369
43 changed files with 371 additions and 326 deletions
|
@ -2594,7 +2594,7 @@ const char* InstanceKlass::signature_name() const {
|
|||
|
||||
// Add L as type indicator
|
||||
int dest_index = 0;
|
||||
dest[dest_index++] = 'L';
|
||||
dest[dest_index++] = JVM_SIGNATURE_CLASS;
|
||||
|
||||
// Add the actual class name
|
||||
for (int src_index = 0; src_index < src_length; ) {
|
||||
|
@ -2607,7 +2607,7 @@ const char* InstanceKlass::signature_name() const {
|
|||
}
|
||||
|
||||
// Add the semicolon and the NULL
|
||||
dest[dest_index++] = ';';
|
||||
dest[dest_index++] = JVM_SIGNATURE_ENDCLASS;
|
||||
dest[dest_index] = '\0';
|
||||
return dest;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue