classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: java.lang.Class.newinstance(): exceptions; desired behavior?


From: David Holmes
Subject: RE: java.lang.Class.newinstance(): exceptions; desired behavior?
Date: Fri, 24 Sep 2004 09:52:40 +1000

> > This is a well-known bug in the spec.. see
> >
> >     http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4233093
> >
> > Sun has yet to do anything about it.

And from all reports they won't. Class.newInstance is claimed to be working
as designed and we should use Constructor.newInstance if we want sensible
semantics.

> It is now the documented behaviour as of JDK 1.5.0rc1.

Finally!

> (And it is
> *really annoying* to implement in a VM written in Java, like
> Jikes RVM).

Was dead easy to do in OVM :-)

David Holmes





reply via email to

[Prev in Thread] Current Thread [Next in Thread]