Contents | Prev | Next | Index

getfield

Linking Exceptions
During resolution of the CONSTANT_Fieldref constant pool item, any of the errors documented in §5.2 can be thrown.

Otherwise, if the specified field exists but is a static field, getfield throws an IncompatibleClassChangeError.

Runtime Exception
Otherwise, if objectref is null, the getfield instruction throws a NullPointerException.

Notes
The getfield instruction operates on both one- and two-word wide fields.


Contents | Prev | Next | Index

Java Virtual Machine Specification (HTML generated by dkramer on February 25, 1997)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com