[333] in java-interest
dynamic class creation and persistence
daemon@ATHENA.MIT.EDU (Eric R Stephens)
Thu Jun 15 09:30:20 1995
Date: Thu, 15 Jun 1995 08:33:19 -0400
To: java-interest@java.sun.com
From: eric.stephens@cad.gatech.edu (Eric R Stephens)
What are the schemes for creating a new class and using it from within a
running java application? What is a good way to save the state of all
instances of a class?
I can think of one way to create new classes from a running java application.
1. write a $class.java
2. use a system call to compile it to $class.class
3. read $class.class into newclass (???)
4. defineClass, etc.
5. use it as if it had been in the application's original compile
If I make changes to $class.java and re-create it, will things still work?
How can I save an instance to disk?
Is it possible to look at an instance's class instance an determine the
area of memory it occupies or the list of attributes?
Eric R Stephens, Ph.D.
(404) 643-9297, 642-6099 fax
Designing tomorrow the night before with yesterday's surplus.
http://www.cad.gatech.edu/ersWWW/
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com