|
Null safety benchmarks for object initialization
A. V. Kogtenkov Independent scientist
Abstract:
Null pointer dereferencing remains one of the major issues in modern object-oriented languages. An obvious addition of keywords to distinguish between never null and possibly null references appears to be insufficient during object initialization when some fields declared as never null may be temporary null before the initialization completes. There are several proposals to solve the object initialization problem. How can they be compared in practice? Are the implementations sound? This work presents a set of examples distilling out the use cases from publications on the subject and open source libraries and explains the criteria behind. Then it discusses expected results for a selected set of tools performing null safety checks for Eiffel, Java, and Kotlin, and concludes with the actual outcomes demonstrating immaturity of the solutions.
Keywords:
null pointer dereferencing, null safety, void safety, object initialization, static analysis, null safety benchmarks.
Citation:
A. V. Kogtenkov, “Null safety benchmarks for object initialization”, Proceedings of ISP RAS, 29:6 (2017), 135–150
Linking options:
https://www.mathnet.ru/eng/tisp277 https://www.mathnet.ru/eng/tisp/v29/i6/p135
|
Statistics & downloads: |
Abstract page: | 116 | Full-text PDF : | 276 | References: | 24 |
|