diff options
Diffstat (limited to 'openjdkjvmti/ti_class_definition.cc')
| -rw-r--r-- | openjdkjvmti/ti_class_definition.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openjdkjvmti/ti_class_definition.cc b/openjdkjvmti/ti_class_definition.cc index 6560570136..c8a3047d9a 100644 --- a/openjdkjvmti/ti_class_definition.cc +++ b/openjdkjvmti/ti_class_definition.cc @@ -122,7 +122,9 @@ static jvmtiError GetDexDataForRetransformation(ArtJvmTiEnv* env, if (dex_file == nullptr) { dex_file = &klass->GetDexFile(); } - std::unique_ptr<FixedUpDexFile> fixed_dex_file(FixedUpDexFile::Create(*dex_file)); + std::string storage; + std::unique_ptr<FixedUpDexFile> fixed_dex_file( + FixedUpDexFile::Create(*dex_file, klass->GetDescriptor(&storage))); *dex_data_len = static_cast<jint>(fixed_dex_file->Size()); return CopyDataIntoJvmtiBuffer(env, fixed_dex_file->Begin(), |