org.jikesrvm.compilers.opt
Class MagicNotImplementedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jikesrvm.compilers.opt.OptimizingCompilerException
org.jikesrvm.compilers.opt.OperationNotImplementedException
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
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 |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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
MagicNotImplementedException
private MagicNotImplementedException(String s,
boolean isExpected)
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