Lines Matching refs:Field
266 * Verify that this instance field ID is valid for this object.
274 AbortF("field operation on NULL object: %p", java_object);
279 AbortF("field operation on invalid %s: %p",
357 * Verify that this static field ID is valid for this class.
456 * Use the kFlag_NullableUtf flag where 'u' field(s) are nullable.
592 mirror::Object* field = soa.Decode<mirror::Object*>(jfield);
593 if (field == nullptr) {
594 AbortF("expected non-null java.lang.reflect.Field");
597 mirror::Class* c = field->GetClass();
599 AbortF("expected java.lang.reflect.Field but got object of type %s: %p",
600 PrettyTypeOf(field).c_str(), jfield);
681 ArtField* field = soa.DecodeField(fid);
682 DCHECK(field != nullptr); // Already checked by Check.
683 if (is_static != field->IsStatic()) {
684 AbortF("attempt to access %s field %s: %p",
685 field->IsStatic() ? "static" : "non-static", PrettyField(field).c_str(), fid);
688 if (type != field->GetTypeAsPrimitiveType()) {
689 AbortF("attempt to access field %s of type %s with the wrong type %s: %p",
690 PrettyField(field).c_str(), PrettyDescriptor(field->GetTypeDescriptor()).c_str(),
697 AbortF("attempt to access static field %s with a class argument of type %s: %p",
698 PrettyField(field).c_str(), PrettyTypeOf(o).c_str(), fid);
702 if (field->GetDeclaringClass() != c) {
703 AbortF("attempt to access static field %s with an incompatible class argument of %s: %p",
704 PrettyField(field).c_str(), PrettyDescriptor(c).c_str(), fid);
709 if (o == nullptr || !field->GetDeclaringClass()->IsAssignableFrom(o->GetClass())) {
710 AbortF("attempt to access field %s from an object argument of type %s: %p",
711 PrettyField(field).c_str(), PrettyTypeOf(o).c_str(), fid);
1757 static jfieldID FromReflectedField(JNIEnv* env, jobject field) {
1760 JniValueType args[2] = {{.E = env}, {.L = field}};
1761 if (sc.Check(soa, true, "EL", args) && sc.CheckReflectedField(soa, field)) {
1763 result.f = baseEnv(env)->FromReflectedField(env, field);
2075 static jtype GetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid) { \
2079 static jtype Get##name##Field(JNIEnv* env, jobject obj, jfieldID fid) { \
2083 static void SetStatic##name##Field(JNIEnv* env, jclass c, jfieldID fid, jtype v) { \
2089 static void Set##name##Field(JNIEnv* env, jobject obj, jfieldID fid, jtype v) { \