{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T03:21:32Z","timestamp":1794540092473,"version":"4.9.1"},"reference-count":49,"publisher":"Springer Science and Business Media LLC","issue":"4","license":[{"start":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T00:00:00Z","timestamp":1791417600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.springernature.com\/gp\/researchers\/text-and-data-mining"},{"start":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T00:00:00Z","timestamp":1791417600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.springernature.com\/gp\/researchers\/text-and-data-mining"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Autom Softw Eng"],"published-print":{"date-parts":[[2026,12]]},"DOI":"10.1007\/s10515-026-00689-8","type":"journal-article","created":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T03:33:54Z","timestamp":1791430434000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Bridging traditional try-catch-finally and modern try-with-resources via automatic refactoring for Java exception handling"],"prefix":"10.1007","volume":"33","author":[{"given":"Yang","family":"Zhang","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Sinan","family":"Hao","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Chunhao","family":"Dong","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"},{"role":"corresponding-author","vocabulary":"crossref"}]},{"given":"Yuan","family":"Xue","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Grant","family":"Meredith","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"297","published-online":{"date-parts":[[2026,10,8]]},"reference":[{"key":"689_CR1","unstructured":"AAA-AA.: Basic-tools (2023). https:\/\/github.com\/aaa-aa\/basic-tools"},{"key":"689_CR2","unstructured":"AionGermany.: Packetsamurai (2020). https:\/\/github.com\/AionGermany\/aion-germany"},{"key":"689_CR3","unstructured":"Anno4j.: anno4j (2019). https:\/\/github.com\/anno4j\/anno4j"},{"key":"689_CR4","unstructured":"arianne.: stendhal (2006). https:\/\/github.com\/arianne\/stendhal"},{"key":"689_CR5","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2022.111417","volume":"192","author":"BN Bhatt","year":"2022","unstructured":"Bhatt, B.N., Furia, C.A.: Automated repair of resource leaks in android applications. J. Syst. Softw. 192, 111417 (2022)","journal-title":"J. Syst. Softw."},{"key":"689_CR6","unstructured":"Carbonado.: Carbonado (2015). https:\/\/github.com\/Carbonado\/Carbonado"},{"issue":"2","key":"689_CR7","doi-asserted-by":"publisher","first-page":"333","DOI":"10.1016\/j.jss.2008.06.035","volume":"82","author":"CT Chen","year":"2009","unstructured":"Chen, C.T., Cheng, Y.C., Hsieh, C.Y., Wu, I.L.: Exception handling refactorings: Directed by goals and driven by bug fixing. J. Syst. Softw. 82(2), 333\u2013345 (2009)","journal-title":"J. Syst. Softw."},{"key":"689_CR8","unstructured":"Chen, M., Tworek, J., Jun, H.: Evaluating large language models trained on code (2021). arXiv:2107.03374 arXiv preprint"},{"issue":"1","key":"689_CR9","doi-asserted-by":"publisher","first-page":"28","DOI":"10.1587\/transinf.E96.D.28","volume":"96","author":"Z Dai","year":"2013","unstructured":"Dai, Z., Mao, X., Lei, Y., et al.: Resco: automatic collection of leaked resources. IEICE Trans. Inf. Syst. 96(1), 28\u201339 (2013)","journal-title":"IEICE Trans. Inf. Syst."},{"key":"689_CR10","unstructured":"Eclipse.: Eclipse java development tools (2020). https:\/\/www.eclipse.org\/jdt\/"},{"key":"689_CR11","doi-asserted-by":"crossref","unstructured":"Fan, A., Gokkaya, B., Harman, M.: Large language models for software engineering: Survey and open problems. IEEE Trans. Software Eng., (2023)","DOI":"10.1109\/ICSE-FoSE59343.2023.00008"},{"key":"689_CR12","doi-asserted-by":"publisher","unstructured":"Filho, J.L.M., Rocha, L., Andrade, R., et\u00a0al.: Preventing erosion in exception handling design using static-architecture conformance checking. In: Springer, Cham, (2017). https:\/\/doi.org\/10.1007\/978-3-319-65831-5_5","DOI":"10.1007\/978-3-319-65831-5_5"},{"key":"689_CR13","unstructured":"Foundation, A.S.: Apache commons io (2026a). https:\/\/github.com\/apache\/commons-io"},{"key":"689_CR14","unstructured":"Foundation, A.S.: Apache pdfbox (2026b). https:\/\/github.com\/apache\/pdfbox"},{"key":"689_CR15","doi-asserted-by":"crossref","unstructured":"Franklin, L., Gyori, A., Lahoda, J., Dig, D.: Lambdaficator: from imperative to functional programming through automated refactoring. In: 35th international conference on software engineering (ICSE). IEEE 2013, pp. 1287\u20131290 (2013)","DOI":"10.1109\/ICSE.2013.6606699"},{"key":"689_CR16","doi-asserted-by":"publisher","unstructured":"Ghanavati, M., Costa, D., Andrzejak, A.: Poster: Memory and resource leak defects in java projects: An empirical study. Int. Conf. Softw. Eng., (2018). https:\/\/doi.org\/10.1145\/3183440.3195032","DOI":"10.1145\/3183440.3195032"},{"key":"689_CR17","doi-asserted-by":"publisher","first-page":"678","DOI":"10.1007\/s10664-019-09731-8","volume":"25","author":"M Ghanavati","year":"2020","unstructured":"Ghanavati, M., Wang, S., Zhang, H.: Memory and resource leak defects and their repairs in java projects. Empir. Softw. Eng. 25, 678\u2013718 (2020)","journal-title":"Empir. Softw. Eng."},{"key":"689_CR18","unstructured":"GPL.: Sloccount (2009). http:\/\/www.dwheeler.com\/sloccount\/"},{"key":"689_CR19","doi-asserted-by":"crossref","unstructured":"Hong, S., Zhang, Y., Li, C., Bai, Y.: Reinstancer: automatically refactoring for instanceof pattern matching. In: Proceedings of the ACM\/IEEE 44th International Conference on Software Engineering: Companion Proceedings, pp. 183\u2013187 (2022)","DOI":"10.1145\/3510454.3516868"},{"key":"689_CR20","unstructured":"Hoozheng.: Androidrobot (2016). https:\/\/github.com\/hoozheng\/AndroidRobot"},{"issue":"6","key":"689_CR21","first-page":"1461","volume":"18","author":"CY Hsieh","year":"2017","unstructured":"Hsieh, C.Y., My, C.L., Ho, K.T., Cheng, Y.C.: Identification and refactoring of exception handling code smells in javascript. J. Int. Technol. 18(6), 1461\u20131471 (2017)","journal-title":"J. Int. Technol."},{"key":"689_CR22","unstructured":"IBM.: The t. j. watson libraries for analysis (2021). http:\/\/wala.sourceforge.net\/wiki\/index.php\/Main_Pag, accessed: 28 Jun 2021"},{"key":"689_CR23","unstructured":"JBoss.: Javassist (2023). https:\/\/github.com\/jboss-javassist\/javassist"},{"key":"689_CR24","doi-asserted-by":"crossref","unstructured":"Jiang, N., et\u00a0al.: Impact of code language models on automated program repair. In: Proceedings of the 45th International Conference on Software Engineering, (2023)","DOI":"10.1109\/ICSE48619.2023.00125"},{"key":"689_CR25","unstructured":"Juebanlin.: util4j (2023). https:\/\/github.com\/juebanlin\/util4j\/tree\/master"},{"key":"689_CR26","doi-asserted-by":"crossref","unstructured":"Kaur, G., Singh, B.: Improving the quality of software by refactoring. In: 2017 International Conference on Intelligent Computing and Control Systems (ICICCS), IEEE, pp. 185\u2013191 (2017)","DOI":"10.1109\/ICCONS.2017.8250707"},{"key":"689_CR27","doi-asserted-by":"crossref","unstructured":"Kellogg, M., Shadab, N., Sridharan, M., et\u00a0al.: Lightweight and modular resource leak verification. In: Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 181\u2013192 (2021)","DOI":"10.1145\/3468264.3468576"},{"key":"689_CR28","doi-asserted-by":"crossref","unstructured":"Kohler, M., Salvaneschi, G.: Automated refactoring to reactive programming. In: 2019 34th IEEE\/ACM International Conference on Automated Software Engineering (ASE), (2019)","DOI":"10.1109\/ASE.2019.00082"},{"key":"689_CR29","unstructured":"Liu, Y., et al.: An empirical study on the potential of large language models in automated software refactoring, (2024). arXiv:2411.04444 arXiv preprint"},{"key":"689_CR30","doi-asserted-by":"crossref","unstructured":"Liu, T., Ji, W., Dong, X., et\u00a0al.: Jleaks: A featured resource leak repository collected from hundreds of open-source java projects. In: 2024 IEEE\/ACM 46th International Conference on Software Engineering (ICSE), IEEE Computer Society, pp. 924\u2013924 (2024)","DOI":"10.1145\/3597503.3639162"},{"key":"689_CR31","doi-asserted-by":"crossref","unstructured":"Midolo, A., Tramontana, E.: Refactoring java loops to streams automatically. In: Proceedings of the 4th International Conference on Computer Science and Software Engineering, pp. 135\u2013139 (2021)","DOI":"10.1145\/3494885.3494910"},{"key":"689_CR32","unstructured":"MyersResearchGroup.: ibiosim (2023). https:\/\/github.com\/MyersResearchGroup\/iBioSim"},{"key":"689_CR33","unstructured":"Nijkamp, E., Hayashi, H., Xiong, C., Savarese, S., Zhou, Y.: Codegen: An open large language model for code with multi-turn program synthesis. In: International Conference on Learning Representations, (2023)"},{"key":"689_CR34","unstructured":"Oddlabs.: tribaltrouble (2004). https:\/\/github.com\/sunenielsen\/tribaltrouble"},{"key":"689_CR35","unstructured":"Oracle.: The try-with-resources statement (the java tutorials) (2020). https:\/\/docs.oracle.com\/javase\/tutorial\/essential\/exceptions\/tryResourceClose.html, accessed 24 Feb 2021"},{"key":"689_CR36","doi-asserted-by":"crossref","unstructured":"Pereira, R.B., et\u00a0al.: Extending ecoandroid with automated detection of resource leaks. In: Proceedings of the 9th IEEE\/ACM International Conference on Mobile Software Engineering and Systems (2022)","DOI":"10.1145\/3524613.3527815"},{"key":"689_CR37","unstructured":"Rocha, J., Melo, H., Coelho, R., Sena, B.: Towards a catalogue of java exception handling bad smells and refactorings. In: Proceedings of the 25th Conference on Pattern Languages of Programs, pp. 1\u201317 (2018)"},{"key":"689_CR38","doi-asserted-by":"crossref","unstructured":"Sch\u00e4fer, M., Sridharan, M., Dolby, J., Tip, F.: Refactoring java programs for flexible locking. In: Proceedings of the 33rd International Conference on Software Engineering, pp. 71\u201380 (2011)","DOI":"10.1145\/1985793.1985804"},{"key":"689_CR39","unstructured":"Sourcemonitor S.\u00a0C.: (2021). https:\/\/www.campwoodsw.com\/sourcemonitor.html"},{"key":"689_CR40","unstructured":"Splendit IT-Consulting GmbH.: jsparrow (2024). https:\/\/jsparrow.io\/, accessed: 28 Sept 2024"},{"key":"689_CR41","unstructured":"Tarwani, S., Chug, A.: Illustration and detection of exception handling bad smells. In: 2021 8th International Conference on Computing for Sustainable Global Development (INDIACom), IEEE, pp. 804\u2013810 (2021)"},{"key":"689_CR42","doi-asserted-by":"crossref","unstructured":"Utture, A., Palsberg, J.: From leaks to fixes: Automated repairs for resource leak warnings. In: Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pp. 159\u2013171 (2023)","DOI":"10.1145\/3611643.3616267"},{"key":"689_CR43","doi-asserted-by":"publisher","unstructured":"Wu, X., Xu, Z., Wei, J.: Static detection of bugs caused by incorrect exception handling in java programs. IEEE (2011). https:\/\/doi.org\/10.1109\/QSIC.2011.25","DOI":"10.1109\/QSIC.2011.25"},{"key":"689_CR44","doi-asserted-by":"crossref","unstructured":"Zhang, Y., Li, C., Shao, S.: Reswitcher: automatically refactoring java programs for switch expression. In: IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW). IEEE 2021, pp 399\u2013400 (2021)","DOI":"10.1109\/ISSREW53611.2021.00108"},{"key":"689_CR45","doi-asserted-by":"publisher","unstructured":"Zhang, Y., Xue, Y.: Exceref: Automatically refactoring for exception handling. In: Proceedings of the 15th Asia-Pacific Symposium on Internetware, pp. 239\u2013248 (2024). https:\/\/doi.org\/10.1145\/3671016.3674824","DOI":"10.1145\/3671016.3674824"},{"key":"689_CR46","doi-asserted-by":"crossref","unstructured":"Zhang, B., Clause, J.: Lightweight automated detection of unsafe information leakage via exceptions. In: Proceedings of the 2014 International Symposium on Software Testing and Analysis, pp. 327\u2013338 (2014)","DOI":"10.1145\/2610384.2610412"},{"key":"689_CR47","doi-asserted-by":"crossref","unstructured":"Zhang, Y., Hong, S.: Reinstancer: An automatic refactoring approach for instanceof pattern matching. Journal of Software: Evolution and Process e2661, (2023)","DOI":"10.22541\/au.167329536.63209373\/v1"},{"key":"689_CR48","doi-asserted-by":"publisher","first-page":"104900","DOI":"10.1109\/ACCESS.2019.2931953","volume":"7","author":"Y Zhang","year":"2019","unstructured":"Zhang, Y., Dong, S., Zhang, X., Liu, H., Zhang, D.: Automated refactoring for stampedlock. IEEE Access 7, 104900\u2013104911 (2019)","journal-title":"IEEE Access"},{"key":"689_CR49","doi-asserted-by":"crossref","unstructured":"Zhang, Y., Shao, S., Zhai, J., Ma, S.: Finelock: automatically refactoring coarse-grained locks into fine-grained locks. In: Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis, pp. 565\u2013568 (2020)","DOI":"10.1145\/3395363.3404368"}],"container-title":["Automated Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-026-00689-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10515-026-00689-8","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10515-026-00689-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T02:45:58Z","timestamp":1794537958000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10515-026-00689-8"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,10,8]]},"references-count":49,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2026,12]]}},"alternative-id":["689"],"URL":"https:\/\/doi.org\/10.1007\/s10515-026-00689-8","relation":{},"ISSN":["0928-8910","1573-7535"],"issn-type":[{"value":"0928-8910","type":"print"},{"value":"1573-7535","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,10,8]]},"assertion":[{"value":"17 October 2025","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"26 September 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"8 October 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"The authors declare no competing interests.","order":1,"name":"Ethics","label":"Competing interests","group":{"name":"EthicsHeading","label":"Declarations"}}],"article-number":"145"}}