Ah, this sounds like an extremely useful capability...
Java has a hot-swap capability... This is used, for example,
by Eclipse when you modify and recompile a piece of code while
the debugger is running. So to some extent, you get this for
free if you use Eclipse as the development environment.
Chad,
I think that you need to consider the classloader issues in order to be
able to do this. The JVM loads a class using the default ClassLoader --
which I think caches the class so that it needn't load it again.
So...even if you get it reinserted into the Ptolemy hierarchy, the JVM
will
I think it makes more sense to use Java's classloader to do this (as Matt
suggests) rather than hot-swap.
With hot-swap, the classes are expected to be consistent with one another
(as with a debugger, for instance)
Since there is no way to ensure this, an exception will likely result.
We've