{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,10]],"date-time":"2026-11-10T10:19:14Z","timestamp":1794305954528,"version":"4.9.0"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/publication-rights-and-licensing-policy"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["2129824, 221707"],"award-info":[{"award-number":["2129824, 221707"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>\n                    Code documentation is a critical artifact of software development, bridging human understanding and machine- readable code. Beyond aiding developers in code comprehension and maintenance, documentation also plays a critical role in\n                    <jats:italic toggle=\"yes\">automating various software engineering tasks, such as test oracle generation (TOG).<\/jats:italic>\n                    In Java, Javadoc comments offer structured, natural language documentation embedded directly within the source code, typically describing functionality, usage, parameters, return values, and exceptional behavior. While prior research has explored the use of Javadoc comments in TOG alongside other information, such as the method under test (MUT), their potential as a stand-alone input source, the most relevant Javadoc components, and guidelines for writing effective Javadoc comments for automating TOG remain less explored.\n                  <\/jats:p>\n                  <jats:p>\n                    In this study, we investigate the impact of Javadoc comments on TOG through a comprehensive analysis. We begin by fine-tuning 10 large language models using three different prompt pairs to assess the role of Javadoc comments alongside other contextual information. Next, we systematically analyze the impact of different Javadoc comment\u2019s components on TOG. To evaluate the generalizability of Javadoc comments from various sources, we also generate them using the GPT-3.5 model. We perform a thorough bug detection study using\n                    <jats:sc>Defects4J<\/jats:sc>\n                    dataset to understand their role in real-world bug detection. Our results show that incorporating Javadoc comments improves the accuracy of test oracles in most cases, aligning closely with ground truth. We find that Javadoc comments\n                    <jats:italic toggle=\"yes\">alone<\/jats:italic>\n                    can match or even outperform approaches that utilize the MUT implementation. Additionally, we identify that the\n                    <jats:sc>description<\/jats:sc>\n                    and the\n                    <jats:sc>return tag<\/jats:sc>\n                    are the most valuable components for TOG. Finally, our approach, when using only Javadoc comments, detects between 19% and 94% more real-world bugs in\n                    <jats:sc>Defects4J<\/jats:sc>\n                    than prior methods, establishing a new state-of-the-art. To further guide developers in writing effective documentation, we conduct a detailed qualitative study on when Javadoc comments are helpful or harmful for TOG.\n                  <\/jats:p>","DOI":"10.1145\/3729354","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:15:34Z","timestamp":1750331734000},"page":"1870-1891","source":"Crossref","is-referenced-by-count":24,"title":["Doc2OracLL: Investigating the Impact of Documentation on LLM-Based Test Oracle Generation"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7282-061X","authenticated-orcid":false,"given":"Soneya Binta","family":"Hossain","sequence":"first","affiliation":[{"name":"University of Virginia, Computer Science, Charlottesville, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-7915-6259","authenticated-orcid":false,"given":"Raygan","family":"Taylor","sequence":"additional","affiliation":[{"name":"Dillard University, Computer Science, New Orleans, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1937-1544","authenticated-orcid":false,"given":"Matthew","family":"Dwyer","sequence":"additional","affiliation":[{"name":"University of Virginia, Computer Science, Charlottesville, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_1_2","doi-asserted-by":"crossref","unstructured":"Emad Aghajani Csaba Nagy Mario Linares-V\u00e1squez Laura Moreno Gabriele Bavota Michele Lanza David C Shepherd. 2020. Software documentation: the practitioners\u2019 perspective. In Proceedings of the ACM\/IEEE 42nd International Conference on Software Engineering. 590\u2013601.","DOI":"10.1145\/3377811.3380405"},{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00122"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2014.2372785"},{"key":"e_1_3_1_4_2","doi-asserted-by":"crossref","unstructured":"Emily M Bender Timnit Gebru Angelina McMillan-Major Shmargaret Shmitchell. 2021. On the dangers of stochastic parrots: Can language models be too big?. In Proceedings of the 2021 ACM conference on fairness accountability and transparency. 610\u2013623.","DOI":"10.1145\/3442188.3445922"},{"issue":"05","key":"e_1_3_1_5_2","doi-asserted-by":"crossref","first-page":"489","DOI":"10.1109\/TSE.2017.2785841","article-title":"Coverage-Based Greybox Fuzzing as Markov Chain","volume":"45","author":"Bohme Marcel","year":"2019","unstructured":"Marcel Bohme, Van-Thuan Pham, Abhik Roychoudhury. 2019. Coverage-Based Greybox Fuzzing as Markov Chain. IEEE Transactions on Software Engineering 45, 05 (2019), 489\u2013506.","journal-title":"IEEE Transactions on Software Engineering"},{"key":"e_1_3_1_6_2","unstructured":"2024. CodeLlama-7B-Instruct Model on Hugging Face. https:\/\/huggingface.co\/codellama\/CodeLlama-7b-Instruct-hf."},{"key":"e_1_3_1_7_2","unstructured":"CodeParrot. [n.d.]https:\/\/github.com\/huggingface\/transformers\/tree\/main\/examples\/research_projects\/codeparrot."},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3510003.3510141"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","DOI":"10.1145\/3660791"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/2685612"},{"key":"e_1_3_1_11_2","unstructured":"2024. CodeGemma-7B Model on Hugging Face. https:\/\/huggingface.co\/google\/codegemma-7b."},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1145\/3639478.3639791"},{"key":"e_1_3_1_13_2","unstructured":"Soneya Binta Hossain Matthew Dwyer. 2024. TOGLL: Correct and Strong Test Oracle Generation with LLMs. arXiv preprint arXiv:2405.03786(2024)."},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/3611643.3616265"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/3660773"},{"key":"e_1_3_1_16_2","unstructured":"Xinyi Hou Yanjie Zhao Yue Liu Zhou Yang Kailong Wang Li Li Xiapu Luo David Lo John Grundy Haoyu Wang. 2023. Large language models for software engineering: A systematic literature review. arXiv preprint arXiv:2308.10620 (2023)."},{"key":"e_1_3_1_17_2","doi-asserted-by":"crossref","unstructured":"Xing Hu Xin Xia David Lo Zhiyuan Wan Qiuyuan Chen Thomas Zimmermann. 2022. Practitioners\u2019 expectations on automated code comment generation. In Proceedings of the 44th International Conference on Software Engineering. 1693\u20131705.","DOI":"10.1145\/3510003.3510152"},{"key":"e_1_3_1_18_2","unstructured":"Hugging Face. 2024. Hugging Face: The AI community building the future. https:\/\/huggingface.co\/. Accessed: 2024-05-1."},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","unstructured":"Ren\u00e9 Just Darioush Jalali Michael D Ernst. 2014. Defects4J: A database of existing faults to enable controlled testing studies for Java programs. In Proceedings of the 2014 International Symposium on Software Testing and Analysis. 437\u2013440. doi:10.1145\/2610384.2628055.","DOI":"10.1145\/2610384.2628055"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00087"},{"key":"e_1_3_1_21_2","doi-asserted-by":"crossref","unstructured":"Caroline Lemieux Koushik Sen. 2018. Fairfuzz: A targeted mutation strategy for increasing greybox fuzz testing coverage. In Proceedings of the 33rd ACM\/IEEE international conference on automated software engineering. 475\u2013485.","DOI":"10.1145\/3238147.3238176"},{"key":"e_1_3_1_22_2","doi-asserted-by":"crossref","unstructured":"Zhongxin Liu Kui Liu Xin Xia Xiaohu Yang. 2023. Towards more realistic evaluation for neural test oracle generation. In Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis. 589\u2013600.","DOI":"10.1145\/3597926.3598080"},{"key":"e_1_3_1_23_2","unstructured":"Shuai Lu Daya Guo Shuo Ren Junjie Huang Alexey Svyatkovskiy Ambrosio Blanco Colin Clement Dawn Drain Daxin Jiang Duyu Tang. 2021. CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generation. arXiv preprint arXiv:2102.04664(2021)."},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2015.2465386"},{"key":"e_1_3_1_25_2","unstructured":"Erik Nijkamp Bo Pang Hiroaki Hayashi Lifu Tu Huan Wang Yingbo Zhou Silvio Savarese Caiming Xiong. 2023. CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis. arXiv:2203.13474[cs.LG] (2023)."},{"key":"e_1_3_1_26_2","unstructured":"Oracle. [n. d.].Javadoc Tool. https:\/\/www.oracle.com\/technical-resources\/articles\/java\/javadoc-tool.html#format."},{"key":"e_1_3_1_27_2","doi-asserted-by":"crossref","unstructured":"Carlos Pacheco Michael D Ernst. 2007. Randoop: feedback-directed random testing for Java. In Companion to the 22nd ACM SIGPLAN conference on Object-oriented programming systems and applications companion. 815\u2013816.","DOI":"10.1145\/1297846.1297902"},{"key":"e_1_3_1_28_2","unstructured":"Phi-1. [n. d.]. https:\/\/huggingface.co\/microsoft\/phi-1."},{"key":"e_1_3_1_29_2","doi-asserted-by":"crossref","unstructured":"Jeff Rasley Samyam Rajbhandari Olatunji Ruwase Yuxiong He. 2020. Deepspeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. 3505\u20133506.","DOI":"10.1145\/3394486.3406703"},{"key":"e_1_3_1_30_2","doi-asserted-by":"crossref","unstructured":"Devjeet Roy Sarah Fakhoury Venera Arnaoudova. 2021. Reassessing automatic evaluation metrics for code summarization tasks. In Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1105\u20131116.","DOI":"10.1145\/3468264.3468588"},{"key":"e_1_3_1_31_2","unstructured":"Baptiste Roziere Jonas Gehring Fabian Gloeckle Sten Sootla Itai Gat Xiaoqing Ellen Tan Yossi Adi Jingyu Liu Tal Remez J\u00e9r\u00e9my Rapin. 2023. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950(2023)."},{"key":"e_1_3_1_32_2","doi-asserted-by":"crossref","unstructured":"Max Sch\u00e4fer Sarah Nadi Aryaz Eghbali Frank Tip. 2023. An empirical evaluation of using large language models for automated unit test generation. IEEE Transactions on Software Engineering (2023).","DOI":"10.1109\/TSE.2023.3334955"},{"key":"e_1_3_1_33_2","unstructured":"Mohammed Latif Siddiq Joanna Santos Ridwanul Hasan Tanvir Noshin Ulfat Fahmid Al Rifat Vinicius Carvalho Lopes. 2023. Exploring the effectiveness of large language models in generating unit tests. arXiv preprint arXiv:2305.00418 (2023)."},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/3546949"},{"key":"e_1_3_1_35_2","unstructured":"Frank F. Xu Uri Alon Graham Neubig Vincent J. Hellendoorn. 2022. A Systematic Evaluation of Large Language Models of Code. arXiv:2202.13169 [cs.PL] (2022)."}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729354","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729354","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:02:58Z","timestamp":1787482978000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3729354"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":35,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3729354"],"URL":"https:\/\/doi.org\/10.1145\/3729354","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}