package javax.realtime; // import java.io.Serializable; import javax.safetycritical.annotate.Allocate; import javax.safetycritical.annotate.MemoryAreaEncloses; import javax.safetycritical.annotate.BlockFree; import javax.safetycritical.annotate.SCJAllowed; import static javax.safetycritical.annotate.Allocate.Area.CURRENT; @SCJAllowed public class IllegalAssignmentError extends Error { // implements Serializable { /** * Shall not copy "this" to any instance or * static field. * <p> * Allocates an application- and implementation-dependent amount of * memory in the current scope (to represent stack backtrace). */ @Allocate({CURRENT}) @BlockFree @SCJAllowed public IllegalAssignmentError() { } /** * Shall not copy "this" to any instance or * static field. The scope containing the msg argument must enclose the * scope containing "this". Otherwise, an IllegalAssignmentError will be * thrown. * <p> * Allocates an application- and implementation-dependent amount of * memory in the current scope (to represent stack backtrace). */ @Allocate({CURRENT}) @BlockFree @MemoryAreaEncloses(inner = {"this"}, outer = {"description"}) @SCJAllowed public IllegalAssignmentError(String description) { super(description); } }