Exceptions: Possible Solutions
Exceptions: Possible Solutions
- determine instructions that will not cause exceptions
- similar to type analysis
- restrict the performed optimizations
- cheat if you can’t get caught!
- enclose the whole method code in a try
- encode the knowledge about performed optimizations in the exception handler
- similar to optimized code debugging