计算机科学 > 程序设计语言
[提交于 2010年7月19日 (v1),最后修订于 2010年7月20日 (此版本, v2)]
标题:Soundly Handling Static Fields: Issues, Semantics and Analysis
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Although in most cases class initialization works as expected, some static fields may be read before being initialized, despite being initialized in their corresponding class initializer. We propose an analysis which compute, for each program point, the set of static fields that must have been initialized and discuss its soundness. We show that such an analysis can be directly applied to identify the static fields that may be read before being initialized and to improve the precision while preserving the soundness of a null-pointer analysis.