java.lang.reflect.Constructor.newInstance

2004-09-23 Thread Steven Augart
I am wondering whether we want to rely upon java.lang.reflect.Constructor.newInstance supporting undocumented behavior. Specifically, I found this line in our version of Class.java: return constructor.newInstance(null); This strikes me as relying on Constructor.newinstance(Object

Re: java.lang.reflect.Constructor.newInstance

2004-09-23 Thread Steven Augart
Steven Augart wrote: it seems to me that we don't want to constrain the VM's reflection optimization to support this. Oops. I meant to write we don't want to constrain the VM's reflection *implementation* to support this. --Steve Augart -- Steven Augart Jikes RVM, a free, open source, Virtual

RE: java.lang.reflect.Constructor.newInstance

2004-09-23 Thread David Holmes
Steven Augart writes: I am wondering whether we want to rely upon java.lang.reflect.Constructor.newInstance supporting undocumented behavior. Specifically, I found this line in our version of Class.java: return constructor.newInstance(null); This strikes me as relying