Java Card
v2.2.2

java.lang
Class ClassCastException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ClassCastException

public class ClassCastException
extends RuntimeException

A Java Card runtime environment-owned instance of ClassCastException is thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:

        Object x = new OwnerPIN( (byte)3, (byte)8);
        JCSystem.getAppletShareableInterfaceObject( (AID)x, (byte)5 );
 

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Runtime Environment Specification for the Java Card Platform, section 6.2.1 for details.

This Java Card platform class's functionality is a strict subset of the definition in the JavaTM 2 Platform Standard Edition (J2SETM) API Specification.


Constructor Summary
ClassCastException()
          Constructs a ClassCastException.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals
 

Constructor Detail

ClassCastException

public ClassCastException()
Constructs a ClassCastException.


Java Card
v2.2.2

Copyright © 1993-2005 Sun Microsystems, Inc. 4150 Network Circle,
Santa Clara, CA, 95054, U.S.A. All Rights Reserved.