Java代码中隐藏家族型相关性的检测

Alin-Petru Roşu, Petru Florin Mihancea
{"title":"Java代码中隐藏家族型相关性的检测","authors":"Alin-Petru Roşu, Petru Florin Mihancea","doi":"10.1109/SCAM55253.2022.00022","DOIUrl":null,"url":null,"abstract":"Family polymorphism is an object-oriented programming feature which facilitates the definition of groups of classes (families) that are allowed to be used together while statically forbidding them to be mixed with classes outside their families. Unfortunately, this feature has not been yet adopted by mainstream industrial-strength programming languages. Consequently, in Java, the idea of non-mixable families is prone to be implemented in a statically unsafe fashion, affecting the programs' intelligibility. In order to support program comprehension, we present an approach to detect code fragments where types of references are correlated within a family; nonetheless, these correlations are hidden behind the references' declarations. We obtained promising results during the initial design and evaluation iterations, based on the analysis of a software system where the presence of families was previously reported.","PeriodicalId":138287,"journal":{"name":"2022 IEEE 22nd International Working Conference on Source Code Analysis and Manipulation (SCAM)","volume":"25 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Towards the Detection of Hidden Familial Type Correlations in Java Code\",\"authors\":\"Alin-Petru Roşu, Petru Florin Mihancea\",\"doi\":\"10.1109/SCAM55253.2022.00022\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Family polymorphism is an object-oriented programming feature which facilitates the definition of groups of classes (families) that are allowed to be used together while statically forbidding them to be mixed with classes outside their families. Unfortunately, this feature has not been yet adopted by mainstream industrial-strength programming languages. Consequently, in Java, the idea of non-mixable families is prone to be implemented in a statically unsafe fashion, affecting the programs' intelligibility. In order to support program comprehension, we present an approach to detect code fragments where types of references are correlated within a family; nonetheless, these correlations are hidden behind the references' declarations. We obtained promising results during the initial design and evaluation iterations, based on the analysis of a software system where the presence of families was previously reported.\",\"PeriodicalId\":138287,\"journal\":{\"name\":\"2022 IEEE 22nd International Working Conference on Source Code Analysis and Manipulation (SCAM)\",\"volume\":\"25 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE 22nd International Working Conference on Source Code Analysis and Manipulation (SCAM)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/SCAM55253.2022.00022\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 22nd International Working Conference on Source Code Analysis and Manipulation (SCAM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SCAM55253.2022.00022","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

家族多态性是一种面向对象的编程特性,它有助于定义允许一起使用的类组(家族),同时静态地禁止它们与家族之外的类混合使用。不幸的是,这个特性还没有被主流的工业编程语言所采用。因此,在Java中,非混合族的思想很容易以静态不安全的方式实现,从而影响程序的可理解性。为了支持程序理解,我们提出了一种方法来检测在一个族中引用类型相关的代码片段;尽管如此,这些相关性隐藏在引用声明的后面。我们在最初的设计和评估迭代中获得了有希望的结果,这是基于对一个软件系统的分析,其中先前报告了家庭的存在。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Towards the Detection of Hidden Familial Type Correlations in Java Code
Family polymorphism is an object-oriented programming feature which facilitates the definition of groups of classes (families) that are allowed to be used together while statically forbidding them to be mixed with classes outside their families. Unfortunately, this feature has not been yet adopted by mainstream industrial-strength programming languages. Consequently, in Java, the idea of non-mixable families is prone to be implemented in a statically unsafe fashion, affecting the programs' intelligibility. In order to support program comprehension, we present an approach to detect code fragments where types of references are correlated within a family; nonetheless, these correlations are hidden behind the references' declarations. We obtained promising results during the initial design and evaluation iterations, based on the analysis of a software system where the presence of families was previously reported.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信