📄 instructions2.doc72.html
字号:
<html><head><title>VM Spec </title></head><body BGCOLOR=#eeeeff text=#000000 LINK=#0000ff VLINK=#000077 ALINK=#ff0000> <a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc71.html">Prev</a> | <a href="Instructions2.doc73.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><hr><br> <a name="getfield"></a><h2>getfield</h2><a name="getfield.Linking"></a><b>Linking Exceptions</b><br><a name="109588"></a>During resolution of the <code>CONSTANT_Fieldref</code> constant pool item, any of the errors documented in <a href="ConstantPool.doc.html#49425">§5.2</a> can be thrown.<p><a name="68247"></a>Otherwise, if the specified field exists but is a <code>static</code> field, <i>getfield</i> throws an <code>IncompatibleClassChangeError</code>.<p><a name="getfield.Runtime"></a><b>Runtime Exception</b><br><a name="68249"></a>Otherwise, if <i>objectref</i><em> </em>is <code>null</code>, the <i>getfield</i> instruction throws a <code>NullPointerException</code>.<p><a name="getfield.Notes"></a><b>Notes</b><br><a name="68250"></a>The <i>getfield</i> instruction operates on both one- and two-word wide fields.<p><hr><!-- This inserts footnotes--><p><a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc71.html">Prev</a> | <a href="Instructions2.doc73.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><p><font size=-1>Java Virtual Machine Specification (HTML generated by dkramer on February 25, 1997)<br><i><a href="Copyright.doc.html">Copyright © 1996 Sun Microsystems, Inc.</a>All rights reserved</i><br>Please send any comments or corrections to <a href="mailto:doug.kramer@sun.com">doug.kramer@sun.com</a></font></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -