Packages  This Package  Prev  Next  Index  

§1.53 Class NoSuchFieldError

public class java.lang.NoSuchFieldError
    extends java.lang.IncompatibleClassChangeError (§1.48)
    public NoSuchFieldError();	§1.53.1
    public NoSuchFieldError(String s);	§1.53.2
The Java runtime throws an instance of this class if the application tries to access or modify a specified field of an object, and that object no longer has that field.

Normally, this error is caught by the compiler; this error can only occur at runtime if the definition of a class has incompatibably changed.


public NoSuchFieldError()
Constructs a NoSuchFieldException with no detail message.

public NoSuchFieldError(String s)
Constructs a NoSuchFieldException with the specified detail message.

s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to