com.markcrocker.purifier.testcases
Class ExceptionCases
java.lang.Object
|
+--javax.microedition.midlet.MIDlet
|
+--com.markcrocker.purifier.testcases.ExceptionCases
- All Implemented Interfaces:
- javax.microedition.lcdui.CommandListener, javax.microedition.lcdui.ItemStateListener
- public class ExceptionCases
- extends javax.microedition.midlet.MIDlet
- implements javax.microedition.lcdui.CommandListener, javax.microedition.lcdui.ItemStateListener
The ExcetionCases class file is designed to provide a wide range of common
Java structures that encorporate exception handlers and can be used to check the Purifier StackMapGen.generate. None of the cases in this class are intended to be any particular challenge to the Purifier, but are here just to make sure that all of the standard exception handler cases are covered.
Field Summary |
(package private) javax.microedition.lcdui.Display |
display
|
(package private) javax.microedition.lcdui.TextBox |
Hello
|
Methods inherited from class javax.microedition.midlet.MIDlet |
getAppProperty, notifyDestroyed, notifyPaused, resumeRequest |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
display
javax.microedition.lcdui.Display display
Hello
javax.microedition.lcdui.TextBox Hello
ExceptionCases
public ExceptionCases()
startApp
public void startApp()
throws javax.microedition.midlet.MIDletStateChangeException
- Overrides:
startApp
in class javax.microedition.midlet.MIDlet
pauseApp
public void pauseApp()
- Overrides:
pauseApp
in class javax.microedition.midlet.MIDlet
destroyApp
public void destroyApp(boolean unconditional)
throws javax.microedition.midlet.MIDletStateChangeException
- Overrides:
destroyApp
in class javax.microedition.midlet.MIDlet
itemStateChanged
public void itemStateChanged(javax.microedition.lcdui.Item item)
- Specified by:
itemStateChanged
in interface javax.microedition.lcdui.ItemStateListener
commandAction
public void commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
- Specified by:
commandAction
in interface javax.microedition.lcdui.CommandListener
canThrowUncaughtException
public void canThrowUncaughtException(java.lang.Integer I)
- If I is null, then this method can throw an uncaugh NullPointerException
throwsCaughtException
public static void throwsCaughtException()
throws java.lang.Exception
catchesException
public void catchesException(java.lang.Integer I)
catchesThrowable
public void catchesThrowable(java.lang.Integer I)
hasAFinallyClause
public void hasAFinallyClause(java.lang.Integer I)
hasAFinallyClauseAndException
public void hasAFinallyClauseAndException(java.lang.Integer I)
hasAFinallyClauseWithAnException
public void hasAFinallyClauseWithAnException(java.lang.Integer I)
catchesNRethrowsException
public void catchesNRethrowsException(java.lang.Integer I)
throws java.lang.Exception
catchesMultipleExceptions
public void catchesMultipleExceptions(java.lang.Integer[] I)
catchesNestedExceptions
public void catchesNestedExceptions(java.lang.Integer[] I)
catchesDuplicateNestedExceptions
public void catchesDuplicateNestedExceptions(java.lang.Integer[] I)