On 5/18/10 6:22 PM, Byron Nevins wrote:
> clazz.newInstance() is a horrible call. For example, it breaks the
> compile time guarantees about checked Exceptions. newInstance can
> throw anything it likes.
> Guess what happens if there doesn't happen to be a default
> constructor? Oops!!
Certainly there are issues with that, but it was just pseudo-code type
in the fancy IDE Thunderbird. If I went that route the code, would be
more intelligent and have error checking, but there's no sense in adding
all that noise when trying to discuss a general approach.
--
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone x31197/+1 405-343-1964
Blog http://blogs.steeplesoft.com