This is the mail archive of the mauve-discuss@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: classpath ./ChangeLog ./THANKYOU ./configure.in...


> > 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]