MCPcopy Create free account
hub / github.com/Relph1119/JVMByPython / resolve_field_ref

Method resolve_field_ref

src/ch08/rtda/heap/CpFieldRef.py:29–46  ·  view source on GitHub ↗

如果类D想通过字段符号引用访问类C的某个字段,首先要解析符号引用得到类C,然后根据字段名和描述符查找字段。 如果字段查找失败,则虚拟机排除NoSuchFieldError异常。 如果查找成功,但D没有足够的权限访问该字段,则虚拟机抛出IllegalAccessError异常。 :return:

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

resolve_fieldMethod · 0.95

Calls 4

lookup_fieldMethod · 0.95
get_classMethod · 0.45
resolved_classMethod · 0.45
is_accessible_toMethod · 0.45

Tested by

no test coverage detected