Re: Reflection, how to understand




"John_Woo" <john_woo@xxxxxxxxxx> wrote in message news:1157049751.170074.20700@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

if I want to see how a class recompiled and its method updated then
invoked, do you have an example,

There's some documentation at http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html#proginterface but I've never tried doing this myself.

and what cases need a class to be
compiled in running time?

Almost none. In a Turing-Computable sense, anything you could do by recompiling and dynamically loading, you could also do by interpreting and emulating.

- Oliver

.