[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: classpath ./ChangeLog ./THANKYOU ./configure.in...
From: |
Stephen Crawley |
Subject: |
Re: classpath ./ChangeLog ./THANKYOU ./configure.in... |
Date: |
Tue, 08 Apr 2003 09:32:11 +1000 |
> > The problem was that the failing test cases' constructors were not
> > declared public. On Kissme, this (correctly IMO) caused the call to
> > 'Class.newInstance' to throw an InstantiationException...
>
> shouldnt this be an IllegalAccessException? as the docs states this
> exception is thrown "...if the class or its nullary constructor is not
> accessible."
>
> also, is it legal for a JVM to try altering the accessibility of a
> non-public, but nullary ctor, before bailing out, and then and only
> then throw an InstantiationException?
Good questions. The JDK javadoc is not entirely clear on either of
them. I'll try some experiments with various Sun JDKs
-- Steve