gcc/libjava/java/net
Bryce McKinlay 28f7d9d05a decl.c (init_decl_processing): Add new class "protectionDomain" field.
gcc/java:

2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

	* decl.c (init_decl_processing): Add new class "protectionDomain"
	field.
	* class.c (make_class_data): Set initial value for "protectionDomain".

libjava:

2001-04-25  Bryce McKinlay  <bryce@albatross.co.nz>

	java.security merge and ClassLoader compliance fixes.

	* java/lang/Class.h (Class): Include ProtectionDomain.h.
	New protectionDomain field.
	(forName): Add initialize parameter. Fixes declaration to comply with
	JDK spec.
	* java/lang/natClass.cc (forName): Correct declaration of the three-arg
	variant. Honour	"initialize" flag.
	(getProtectionDomain0): New method.
	* java/lang/Class.java: Fix forName() declaration.
	(getPackage): New method based on Classpath implementation.
	(getProtectionDomain0): New native method decl.
	(getProtectionDomain): New method.
	* java/lang/ClassLoader.java (getParent): Now final.
	(definedPackages): New field.
	(getPackage): New.
	(defineClass): New variant with protectionDomain argument.
	(definePackage): New.
	(getPackages): New.
	(findSystemClass): Now final.
	(getSystemResourceAsStream): Remove redundant "final" modifier.
	(getSystemResource): Remove redundant "final" modifier.
	(getResources): Now final.
	(protectionDomainPermission): New static field.
	(unknownProtectionDomain): Ditto.
	(defaultProtectionDomain): Ditto.
	(getSystemClassLoader): Now non-native.
	* java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
	arguments for Class.forName().
	* java/lang/Package.java: New file.
	* gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
	(instance): Static initialize singleton.
	(findClass): Override this, not findSystemClass.
	* java/lang/natClassLoader.cc (defineClass0): Set class's
	protectionDomain field as specified.
	(getSystemClassLoader): Removed.
	(findClass): Renamed from findSystemClass. Call the interpreter via
	URLClassLoader.findClass if loading class via dlopen fails.

	* java/security/*.java: java.security import/merge with Classpath.
	* java/security/acl/*.java: Likewise.
	* java/security/interfaces/*.java: Likewise.
	* java/security/spec/*.java: Likewise.
	* java/net/NetPermission.java: Likewise.
	* java/net/SocketPermission.java: Likewise.
	* gnu/java/security/provider/DefaultPolicy.java: Likewise.

	* Makefile.am: Add new classes.
	* Makefile.in: Rebuilt.
	* gcj/javaprims.h: CNI namespace rebuild.

From-SVN: r41543
2001-04-25 16:45:15 +01:00
..
BindException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ConnectException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ContentHandler.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ContentHandlerFactory.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
DatagramPacket.java Locale.java (Locale): Don't explicitly check for null. 2000-05-04 15:50:34 +00:00
DatagramSocket.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
DatagramSocketImpl.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
FileNameMap.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
HttpURLConnection.java Connection.java (gotHeaders): Removed. 2000-08-10 10:10:25 +01:00
InetAddress.java InetAddress.java (addr): Renamed from 'address'. 2000-11-03 07:43:06 +00:00
JarURLConnection.java URLClassLoader.java: Find the JarEntry via the JarFile. 2000-08-20 17:49:12 +00:00
MalformedURLException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
MulticastSocket.java Locale.java (Locale): Don't explicitly check for null. 2000-05-04 15:50:34 +00:00
natInetAddress.cc InetAddress.java (addr): Renamed from 'address'. 2000-11-03 07:43:06 +00:00
natPlainDatagramSocketImpl.cc InetAddress.java (addr): Renamed from 'address'. 2000-11-03 07:43:06 +00:00
natPlainSocketImpl.cc InetAddress.java (addr): Renamed from 'address'. 2000-11-03 07:43:06 +00:00
NetPermission.java decl.c (init_decl_processing): Add new class "protectionDomain" field. 2001-04-25 16:45:15 +01:00
NoRouteToHostException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
PlainDatagramSocketImpl.java FileInputStream.java (close): Check if the fd is valid. 2000-12-08 10:28:32 +00:00
PlainSocketImpl.java FileInputStream.java (close): Check if the fd is valid. 2000-12-08 10:28:32 +00:00
ProtocolException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ServerSocket.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Socket.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SocketException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SocketImpl.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SocketImplFactory.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SocketOptions.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SocketPermission.java decl.c (init_decl_processing): Add new class "protectionDomain" field. 2001-04-25 16:45:15 +01:00
UnknownHostException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
UnknownServiceException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
URL.java PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
URLClassLoader.java prims.cc (_Jv_NewObjectArray): Undo placement change. 2000-11-26 03:58:56 +00:00
URLConnection.java Fix bug in URLConnection and correct javadoc annotations in StringBuffer. 2001-01-07 20:01:46 +00:00
URLDecoder.java URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com) 2001-01-15 07:58:16 +00:00
URLEncoder.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
URLStreamHandler.java URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" "../../xxx" to "/xxx". 2001-03-19 15:31:14 -08:00
URLStreamHandlerFactory.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00