one.tools
Class SystemFix

java.lang.Object
  |
  +--one.tools.SystemFix

public final class SystemFix
extends Object

Utility to patch references to java.lang.System and java.lang.Thread in class files. This utility reads the specified class files and replaces all invocations to arraycopy(), currentTimeMillis(), getProperties, and getProptery() in java.lang.System with the appropriate invocations in SystemUtilities. Invocations to sleep() in java.lang.Thread are replaced as well. Finally, references to out and err in java.lang.System are mapped to Shell.console. Class files must be specified by their file names, including the ".class" file name extension. Note that this utility overwrites patched class files in place.

This class depends on the Byte Code Engineering Library to perform the actual work.

Version:
$Revision: 1.2 $

Method Summary
static void main(String[] argv)
          Run the utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] argv)
Run the utility.
Parameters:
argv - The classes to patch, specified as file names.


(C) Copyright 2001 UW CSE