CiFi: Versatile Analysis of Class and Field Immutability
dc.contributor.author | Roth, Tobias | |
dc.contributor.author | Helm, Dominik | |
dc.contributor.author | Reif, Michael | |
dc.contributor.author | Mezini, Mira | |
dc.contributor.editor | Grunske, Lars | |
dc.contributor.editor | Siegmund, Janet | |
dc.contributor.editor | Vogelsang, Andreas | |
dc.date.accessioned | 2022-01-19T12:56:54Z | |
dc.date.available | 2022-01-19T12:56:54Z | |
dc.date.issued | 2022 | |
dc.description.abstract | This paper was accepted in 2021 at the 36th IEEE/ACM International Conference on Automated Software Engineering and proposes a model for immutability analysis. Reasoning about immutability is important for preventing bugs, e.g., in multi-threaded software. Static analysis to infer immutability properties has mostly focused on individual objects and references. Reasoning about fields and entire classes, while significantly simpler, has gained less attention. A consistently used terminology is missing, which makes it difficult to implement analyses that rely on immutability information. We propose a model for class and field immutability that unifies terminology for immutability flavors considered by previous work and covers new levels of immutability to handle lazy initialization and immutability dependent on generic type parameters. Using the OPAL static analysis framework, we implement CiFi, a set of modular, collaborating analyses for different flavors of immutability, inferring the properties defined in our model. We propose a benchmark of representative test cases for class and field immutability. We use the benchmark to showcase CiFi's precision and recall in comparison to state of the art and use CiFi to study the prevalence of immutability in real-world libraries, showcasing the practical quality and relevance of our model. | en |
dc.identifier.doi | 10.18420/se2022-ws-027 | |
dc.identifier.isbn | 978-3-88579-714-2 | |
dc.identifier.pissn | 1617-5468 | |
dc.identifier.uri | https://dl.gi.de/handle/20.500.12116/37980 | |
dc.language.iso | en | |
dc.publisher | Gesellschaft für Informatik e.V. | |
dc.relation.ispartof | Software Engineering 2022 | |
dc.relation.ispartofseries | Lecture Notes in Informatics (LNI) - Proceedings, Volume P-320 | |
dc.subject | class and field immutability | |
dc.subject | static analysis | |
dc.subject | lattice | |
dc.subject | Java | |
dc.title | CiFi: Versatile Analysis of Class and Field Immutability | en |
dc.type | Text/Conference Paper | |
gi.citation.endPage | 82 | |
gi.citation.publisherPlace | Bonn | |
gi.citation.startPage | 81 | |
gi.conference.date | 21.-25. Feburar 2022 | |
gi.conference.location | Berlin/Virtuell | |
gi.conference.sessiontitle | Wissenschaftliches Hauptprogramm |
Dateien
Originalbündel
1 - 1 von 1