org.jikesrvm.compilers.opt
Class MagicNotImplementedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jikesrvm.compilers.opt.OptimizingCompilerException
                  extended by org.jikesrvm.compilers.opt.OperationNotImplementedException
                      extended by org.jikesrvm.compilers.opt.MagicNotImplementedException
All Implemented Interfaces:
Serializable

public final class MagicNotImplementedException
extends OperationNotImplementedException

Use this exception when the opt compiler attempts to compile an unsupported magic. We define this to be a non-fatal OptimizingCompilerException.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jikesrvm.compilers.opt.OptimizingCompilerException
OptimizingCompilerException.IllegalUpcast
 
Field Summary
 boolean isExpected
          A very few magics, we have no intention of ever implementing in the opt compiler.
(package private) static long serialVersionUID
          Support for exception serialization
 
Fields inherited from class org.jikesrvm.compilers.opt.OptimizingCompilerException
isFatal
 
Constructor Summary
private MagicNotImplementedException(String s, boolean isExpected)
           
 
Method Summary
static MagicNotImplementedException EXPECTED(String s)
          Create a MagicNotImplemented exception with message s when we encounter a magic that we have decided to not implement in the opt compiler.
static MagicNotImplementedException UNEXPECTED(String s)
          Create a MagicNotImplemented exception with message s when we encounter a magic that we have decided to not implement in the opt compiler.
 
Methods inherited from class org.jikesrvm.compilers.opt.OptimizingCompilerException
TODO, TODO, trace, UNREACHABLE, UNREACHABLE, UNREACHABLE, UNREACHABLE
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Support for exception serialization

See Also:
Constant Field Values

isExpected

public final boolean isExpected
A very few magics, we have no intention of ever implementing in the opt compiler. Suppress warning messages for them to avoid confusing users with "expected" error messages

Constructor Detail

MagicNotImplementedException

private MagicNotImplementedException(String s,
                                     boolean isExpected)
Method Detail

EXPECTED

public static MagicNotImplementedException EXPECTED(String s)
Create a MagicNotImplemented exception with message s when we encounter a magic that we have decided to not implement in the opt compiler.

Parameters:
s - The message for the exception.
Returns:
the newly created exception object

UNEXPECTED

public static MagicNotImplementedException UNEXPECTED(String s)
Create a MagicNotImplemented exception with message s when we encounter a magic that we have decided to not implement in the opt compiler.

Parameters:
s - The exception's message
Returns:
the newly created exception object