test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetFieldAccessWatch/setfldw005/setfldw005.cpp
equal
deleted
inserted
replaced
152 return; |
152 return; |
153 } |
153 } |
154 |
154 |
155 for (i = 0; i < sizeof(fields) / sizeof(field); i++) { |
155 for (i = 0; i < sizeof(fields) / sizeof(field); i++) { |
156 if (fields[i].stat == JNI_TRUE) { |
156 if (fields[i].stat == JNI_TRUE) { |
157 fields[i].fid = env-> GetStaticFieldID( |
157 fields[i].fid = env->GetStaticFieldID(cls, fields[i].name, fields[i].sig); |
158 cls, fields[i].name, fields[i].sig); |
|
159 } else { |
158 } else { |
160 fields[i].fid = env->GetFieldID( |
159 fields[i].fid = env->GetFieldID(cls, fields[i].name, fields[i].sig); |
161 cls, fields[i].name, fields[i].sig); |
|
162 } |
160 } |
163 if (fields[i].fid == NULL) { |
161 if (fields[i].fid == NULL) { |
164 printf("Unable to set access watch on %s fld%" PRIuPTR ", fieldID=0", |
162 printf("Unable to set access watch on %s fld%" PRIuPTR ", fieldID=0", |
165 fields[i].descr, i); |
163 fields[i].descr, i); |
166 } else { |
164 } else { |