Browse Prior Art Database

Resource constraints in Java by means of a classfile modification

IP.com Disclosure Number: IPCOM000010128D
Original Publication Date: 2002-Oct-24
Included in the Prior Art Database: 2002-Oct-24

Publishing Venue

IBM

Abstract

The standard J2SE (Java2 standard edition) classes are currently designed assuming the existence of a security manager which is periodically asked to check that the running code is authorised to perform the desired operation. A typical operation would be the creation of a FileOutputStream object allowing data to be written to a file. Once this permission is granted by the security manager the assumption is that the code will be well behaved and impose some limitations on the number of bytes written. Either malicious or buggy code could however exceed the capacity of the file system and cause the entire machine to crash in the worst case. Hence it is desirable that we impose some limitations on the quantity of data written and allow that those limits be varied dynamically during the program lifetime.