The security problem of nested classes

Citation
Y. Li et al., The security problem of nested classes, ACM SIGPL N, 35(3), 2000, pp. 34-38
Citations number
5
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
35
Issue
3
Year of publication
2000
Pages
34 - 38
Database
ISI
SICI code
1523-2867(200003)35:3<34:TSPONC>2.0.ZU;2-4
Abstract
This paper mainly discusses the security problem of OO languages caused by the introduction of the nested class mechanism. Firstly, by analyzing vario us cases concerning about nested classes instances and their owner objects in detail, we illustrate the invalid owner problem arising from the differe nce between the lifetime of nested class instances and their owner objects. Then a solution to solve this problem is presented. Finally, a conclusion is drawn that the nested class mechanism should be suitable for the languag es in which user defined classes are only used to declare dynamically creat ed objects and which have garbage collection support, such as Java, not for the languages in which classes are allowed to declare static objects or lo cal objects and which have no garbage collection support, such as C++.