* ICSE 2018 *
Sun 27 May - Sun 3 June 2018 Gothenburg, Sweden
Fri 1 Jun 2018 11:40 - 12:00 at H2 room - Mining Software Repositories Chair(s): Tim Menzies

Programmers often consult an online Q&A forum such as Stack Over ow to learn new APIs. This paper presents an empirical study on the prevalence and severity of API misuse on Stack Over ow. To reduce manual assessment e ort, we design ExampleCheck, an API usage mining framework that extracts patterns from over 380K Java repositories on GitHub and subsequently reports potential API usage violations in Stack Over ow posts. We analyze 217,818 Stack Over ow posts using ExampleCheck and nd that 31% may have potential API usage violations that could produce unexpected behavior such as program crashes and resource leaks. Such API misuse is caused by three main reasons—missing control constructs, missing or incorrect order of API calls, and incorrect guard conditions. Even the posts that are accepted as correct answers or upvoted by other programmers are not necessarily more reliable than other posts in terms of API misuse. This study result calls for a new approach to augment Stack Over ow with alternative API usage details that are not typically shown in curated examples.

ICSE presentation slides (icse-slides.pptx)1.80MiB

Fri 1 Jun
Times are displayed in time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

11:00 - 12:30
Mining Software RepositoriesTechnical Papers / Journal first papers at H2 room
Chair(s): Tim MenziesNorth Carolina State University
11:00
20m
Talk
Understanding the Factors for Fast Answers in Technical Q&A Websites: An Empirical Study of Four Stack Exchange Websites
Journal first papers
Shaowei WangQueen's University, Tse-Hsun (Peter) ChenConcordia University, Ahmed E. HassanQueen's University
11:20
20m
Talk
Towards Reusing Hints from Past Fixes- An Exploratory Study on Thousands of Real Samples
Journal first papers
Hao ZhongShanghai Jiao Tong University, Na MengVirginia Tech
11:40
20m
Research paper
Are Code Examples on an Online Q&A Forum Reliable? A Study of API Misuse on Stack Overflow
Technical Papers
Tianyi ZhangUniversity of California, Los Angeles, Ganesha UpadhyayaFuturewei Technologies, Anastasia Reinhardt, Hridesh RajanIowa State University, Miryung KimUniversity of California at Los Angeles, USA
Pre-print File Attached
12:00
20m
Talk
Inference of development activities from interaction with uninstrumented applications
Journal first papers
Lingfeng Bao , Zhenchang XingAustralia National University, Xin XiaMonash University, David LoSingapore Management University, Ahmed E. HassanQueen's University
12:20
10m
Talk
Q&A in groups
Technical Papers