Security and dynamic class loading in Java: a formalisation
Thomas Wiben Jensen, Daniel Le Métayer, Tommy Thorn · International Conference on Computer Languages (ICCL) · 2002
We give a formal specification of the dynamic loading of classes in the Java Virtual Machine (JVM) and of the visibility of members of the loaded classes. This specification is obtained by identifying the part of the run-time state of the JVM that is relevant for dynamic loading and visibility and consists of a set of inference rules defining abstract operations for loading, linking and verification of classes. The formalisation of visibility includes an axiomatisation of the rules for membership of a class under inheritance, and of accessibility of a member in the presence of accessibility modifiers such as private and protected. The contribution of the formalisation is twofold. First, it provides a clear and concise description of the loading process and the rules for member visibility compared to the informal definitions of the Java language and the JVM. Second, it is sufficiently simple to allow calculations of the effects of load operations in the JVM.
Cited by 49 works. doi:10.1109/iccl.1998.674152
Authors
References
- The Java Language Specification
- Java Virtual Machine Specification
- Going beyond the sandbox: an overview of the new security architecture in the java TM development Kit 1.2
- Java security: hostile applets, holes&antidotes
- Java is type safe — Probably
- The security of static typing with dynamic linking
- Java security: present and near future
- Proving Java Type Soundness
- Program fragments, linking, and modularization
- Programming languages for mobile code