mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8153858: Clean up needed when obtaining the package name from a fully qualified class name
Consolidated and refactored code parsing fully qualified names. Includes gtest. Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
b0fab9d6b7
commit
e956abefe6
9 changed files with 218 additions and 85 deletions
|
@ -246,7 +246,7 @@ class Method : public Metadata {
|
|||
int code_size() const { return constMethod()->code_size(); }
|
||||
|
||||
// method size in words
|
||||
int method_size() const { return sizeof(Method)/wordSize + is_native() ? 2 : 0; }
|
||||
int method_size() const { return sizeof(Method)/wordSize + ( is_native() ? 2 : 0 ); }
|
||||
|
||||
// constant pool for Klass* holding this method
|
||||
ConstantPool* constants() const { return constMethod()->constants(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue