Abstract:
Based on constructing Object-Oriented system dependence graph with exception handing, this paper analyzes the effects of exception handling constructs on program dependence.In order to get coarse-grained slice, this paper presents a practical approach that convert exception structure to private methods inside a class to simplify the system dependence graph with exception handling constructs.And using graph reachability algorithm on the simplified system dependence graph with exception handling constructs can get coarse-grained slice with exception structure.Finally, we compared coarse-grained slice with fine-grained slice through a slice standard.From the comparison, we can see that coarse-grained slice completely contains the fine-grained slice.Thus we succeed in reducing the complexity of calculating slice.