The Artima Developer Community
Sponsored Link

another case where runtime info is ok?

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

another case where runtime info is ok?

Posted by Tony Locke on 12 Feb 1999, 7:36 AM

I've used code such as:

this.getClass().getMethod(methodName, null).invoke(this, null);

in a servlet where 'methodName' is a CGI parameter. I agree that
runtime info should be avoided if possible, but I think that in
this case it is justified. What does anyone else think?

-tony.



Replies:
  • I agree Bill Venners 17 Feb 1999, 6:26 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us