[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.5555/2666990.2666991acmconferencesArticle/Chapter ViewAbstractPublication PagesfseConference Proceedingsconference-collections
research-article

Making exceptions on exception handling

Published: 09 June 2012 Publication History

Abstract

The exception-handling mechanism has been widely adopted to deal with exception conditions that may arise during program executions. To produce high-quality programs, developers are expected to handle these exception conditions and take necessary recovery or resource-releasing actions. Failing to handle these exception conditions can lead to not only performance degradation, but also critical issues. Developers can write formal specifications to capture expected exception-handling behavior, and then apply tools to automatically analyze program code for detecting specification violations. However, in practice, developers rarely write formal specifications. To address this issue, mining techniques have been used to mine common exception-handling behavior out of program code. In this paper, we discuss challenges and achievements in precisely specifying and mining formal exception-handling specifications, as tackled by our previous work. Our key insight is that expected exception-handling behavior may be "conditional" or may need to accommodate "exceptional" cases.

References

[1]
T. C. Lethbridge, J. Singer, and A. Forward. How software engineers use documentation: The state of the practice. IEEE Software, 20(6):35--39, November 2003.
[2]
H. Shah, C. Görg, and M. J. Harrold. Why do developers neglect exception handling? In Proc. 4th International Workshop on Exception Handling (WEH 2008), pages 62--68, 2008.
[3]
S. Thummalapenta and T. Xie. Mining exception-handling rules as sequence association rules. In Proc. 31st International Conference on Software Engineering (ICSE 2009), pages 496--506, 2009.
[4]
S. Thummalapenta and T. Xie. Alattin: mining alternative patterns for defect detection. Automated Software Engineering, 18(3-4):293--323, 2011.
[5]
S. Thummalapenta, T. Xie, and M. R. Marri. Mining API usage specifications via searching source code from the web. In D. Lo, S.-C. Khoo, J. Han, and C. Liu, editors, Mining Software Specifications: Methodologies and Applications. Taylor & Francis, 2011.
[6]
W. Weimer and G. Necula. Mining temporal specifications for error detection. In Proc. 11th International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2005), pages 461--476, 2005.
[7]
W. Weimer and G. C. Necula. Finding and preventing run-time error handling mistakes. In Proc. 19th annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA 2004), pages 419--431, 2004.
[8]
T. Xie, S. Thummalapenta, D. Lo, and C. Liu. Data mining for software engineering. IEEE Computer, 42(8):35--42, August 2009.
[9]
H. Zhong, L. Zhang, T. Xie, and H. Mei. Inferring resource specifications from natural language API documentation. In Proc. 24th IEEE/ACM International Conference on Automated Software Engineering (ASE 2009), pages 307--318, 2009.

Cited By

View all
  • (2016)How developers use exception handling in Java?Proceedings of the 13th International Conference on Mining Software Repositories10.1145/2901739.2903500(516-519)Online publication date: 14-May-2016
  • (2016)Preventing database schema extraction by error message handlingInformation Systems10.1016/j.is.2015.09.01056:C(135-156)Online publication date: 1-Mar-2016

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
WEH '12: Proceedings of the 5th International Workshop on Exception Handling
June 2012
68 pages
ISBN:9781467317665

Sponsors

Publisher

IEEE Press

Publication History

Published: 09 June 2012

Check for updates

Qualifiers

  • Research-article

Conference

ICSE '12
Sponsor:

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 15 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2016)How developers use exception handling in Java?Proceedings of the 13th International Conference on Mining Software Repositories10.1145/2901739.2903500(516-519)Online publication date: 14-May-2016
  • (2016)Preventing database schema extraction by error message handlingInformation Systems10.1016/j.is.2015.09.01056:C(135-156)Online publication date: 1-Mar-2016

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media