[kaffe] Kaffe CVS: kaffe hkraemer

Kaffe CVS kaffe@kaffe.org
Tue May 27 14:30:01 2003


CVSROOT:	/cvs/kaffe
Module name:	kaffe
Changes by:	hkraemer	03/05/27 14:28:04

Modified files:
	.              : ChangeLog 
	test/regression: ProhibitedClass.java ProcessClassInst.java 
	                 ProcessClassStop.java 
	libraries/javalib/kaffe/lang: PrimordialClassLoader.java 
	                              AppClassLoader.java 
	libraries/javalib/java/lang: Class.java ClassLoader.java 

Log message:
2003-05-27  Helmer Kraemer  <hkraemer@freenet.de>

* libraries/javalib/kaffe/lang/PrimordialClassLoader.java:
(getPackage, getPackages, getProtectionDomain, findResource): new
methods so Class and ClassLoader can delegate calls to the primordial
class loader

* libraries/javalib/java/lang/ClassLoader.java:
(loadClass, getResource, getResources, getPackage, getPackages):
delegate call to PrimordialClassLoader if parent is null

* libraries/javalib/java/lang/Class.java:
(getPackage, getProtectionDomain): delegate to PrimordialClassLoader
if class loader is null

* libraries/javalib/kaffe/lang/AppClassLoader.java
(findResources, findClass): don't delegate call to the primordial
class loader, since ClassLoader already does this
(findResource): new method to search for only one resource

* test/regression/ProhibitedClass.java,
test/regression/ProcessClassInst.java,
test/regression/ProcessClassStop.java:
adjusted line numbers in stack traces