Niclas Hedhman wrote:
On Thursday 13 February 2003 03:03, robert burrell donkin wrote:

On Tuesday, February 11, 2003, at 11:35 PM, Richard Bair wrote:

<snip>

BTW, Mark, I'm totally wrong.  The java.beans package goes all the way
back to 1.2.2 at least.  I think it will work well for what we are doing
here.
if you're using java 1.3 (and maybe some earlier versions), you need to be
a bit beware since reflection is buggy.

This is a pretty bold statement...
I have been using java.lang.reflect since it was introduced (in fact I had my own implementation in JDK 1.0), and have not experienced any "issues", "bugs" or the like.
AFAIK, Serialization also depends heavily on it, and RMI depends on Serialization, and J2EE depends heavily on RMI. You really think that anything "buggy" would be tolerated to stay around for that long (when was 1.2 released? 1998?, 1999?).

Do you have any example of this "reflection is buggy"??

Niclas

Niclas,

There are documented bugs on Sun's web site (http://developer.java.sun.com/developer/bugParade/bugs/4477877.html). The bugs aren't in reflection but the Introspector. If I recall correctly the exact behavior depends on the order of the methods as returned by reflection. Since the order is indeterminate, it can change simply by loading another class or adding methods (a good analogy would be the order of items in a HashMap).

Ray





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to