kaffe sematics of newInstance != jdk1.1.3
Alexandre Oliva
oliva at dcc.unicamp.br
Tue Aug 5 20:46:13 PDT 1997
Guy Carpenter writes:
> With kaffe I can create an instance of a class in another
> package even if the class is not declared public. Sun's jdk
> throws an IllegalAccessException when running the same code,
> and I believe that is the correct behaviour.
That's right. The current implementation of Class.newInstance() in
Kaffe does not perform any verification. This may be fixed in some
future release.
--
Alexandre Oliva
mailto:oliva at dcc.unicamp.br mailto:aoliva at acm.org
Universidade Estadual de Campinas, SP, Brasil
More information about the kaffe
mailing list