summaryrefslogtreecommitdiff
path: root/java/io/ObjectStreamClass.java
Commit message (Collapse)AuthorAgeFilesLines
* 2006-10-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-10-051-2/+2
| | | | * Merge of HEAD-->generics for 2006/09/03-2006/10/04.
* 2006-09-05 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-09-051-169/+274
| | | | * Merge of HEAD-->generics from 2006/08/12 to 2006/09/03.
* 2006-04-02 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-04-021-1/+10
| | | | | | | | | | | * java/io/ObjectOutputStream.java: (writeObject(Object)): Added enum support. (writeClassDescriptor(ObjectStreamClass)): Likewise. * java/io/ObjectStreamClass.java: (isEnum()): New package-private method. (setFlags(Class)): Added enum support. * java/io/ObjectStreamConstants.java: (SC_ENUM): Added.
* 2006-01-10 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-01-101-0/+31
| | | | | Merge of HEAD --> generics branch for the period 2005/11/27 to 2006/01/09.
* 2005-10-16 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-10-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/image/BufferedImage.java: (getSources()): Genericized. * java/awt/image/ImageFilter.java: (setProperties(Hashtable<?,?>)): Likewise. * java/awt/image/MemoryImageSource.java: (MemoryImageSource(int,int,int[],int,int,Hashtable<?,?>)): Likewise. * java/awt/image/PixelGrabber.java: (setProperties(Hashtable<?,?>)): Likewise. * java/awt/image/renderable/RenderableImageOp.java: (getSources()): Likewise. * java/beans/Beans.java: (getInstanceOf(Object,Class<?>)): Likewise. (isInstanceOf(Object,Class<?>)): Likewise. * java/beans/EventSetDescriptor.java: (EventSetDescriptor(Class<?>,String,Class<?>,String)): Likewise. (EventSetDescriptor(Class<?>,String,Class<?>,String[],String,String)): Likewise. (EventSetDescriptor(Class<?>,Method[],Method,Method)): Likewise. (EventSetDescriptor(String,Class<?>,MethodDescriptor,Method,Method)): Likewise. (getListenerType()): Likewise. * java/beans/FeatureDescriptor.java: (FeatureDescriptor()): Likewise. (attributeNames()): Likewise. * java/beans/IndexedPropertyDescriptor.java: (IndexedPropertyDescriptor(String,Class<?>)): Likewise. (IndexedPropertyDescriptor(String,Class<?>,String,String,String,String)): Likewise. (getIndexedPropertyType()): Likewise. * java/beans/Introspector.java: (getBeanInfo(Class<?>)): Likewise. (flushFromCaches(Class<?>)): Likewise. (getBeanInfo(Class<?>,Class<?>)): Likewise. * java/beans/PropertyDescriptor.java: (PropertyDescriptor(String,Class<?>)): Likewise. (getPropertyType()): Likewise. (getPropertyEditorClass()): Likewise. (setPropertyEditorClass(Class<?>)): Likewise. (checkMethods(Method,Method)): Likewise. * java/beans/PropertyEditorManager.java: (registerEditor(Class<?>,Class<?>)): Likewise. (getEditor(Class<?>)): Likewise. * java/io/ObjectInputStream.java: (resolveClass(ObjectStreamClass)): Likewise. * java/io/ObjectOutputStream.java: (annotateClass(Class<?>)): Likewise. (annotateProxyClass(Class<?>)): Likewise. * java/io/ObjectStreamClass.java: (lookup(Class<?>)): Likewise. (forClass()): Likewise. * java/io/ObjectStreamField.java: (ObjectStreamField(String,Class<?>)): Likewise. (ObjectStreamField(String,Class<?>,boolean)): Likewise. * java/net/NetworkInterface.java: (getInetAddresses()): Likewise. (getNetworkInterfaces()): Likewise. * java/net/URLClassLoader.java: (findClass(String)): Likewise. (findResources(String)): Likewise. * java/net/URLConnection.java: (getHeaderFields()): Likewise. (getRequestProperties()): Likewise. * javax/swing/text/TextAction.java: (augmentList(Action[],Action[])): Likewise. * javax/swing/text/html/HTML.java: (attrMap): Likewise. (tagMap): Likewise. * javax/swing/text/html/parser/DTD.java: (dtdHash): Likewise. (elementHash): Likewise. (entityHash): Likewise. (defineAttributes(String,AttributeList)): Likewise. (newElement(String)): Likewise.
* 2005-09-20 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-09-201-8/+9
| | | | * Merge of generics-branch for 2005/09/07 - 2005/09/20 @ 10:05am GMT.
* 2005-08-02 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-08-021-6/+53
| | | | | | * Merge of HEAD --> generics-branch for 2005/06/05 - 2005/07/31. See patch on classpath-patches@gnu.org for a full ChangeLog.
* 2005-02-04 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-02-041-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge of HEAD --> generics-branch for 03/02/2005. Changelog: 2005-02-03 Robert Schuster <thebohemian@gmx.net> * gnu/java/nio/charset/ISO_8859_1.java, gnu/java/nio/charset/US_ASCII.java, gnu/java/nio/charset/UTF_16.java, gnu/java/nio/charset/UTF_16_LE.java, gnu/java/nio/charset/UTF_16_BE.java, gnu/java/nio/charset/UTF_8.java: Fixed canonical names and aliases according to "http://www.iana.org/assignments/character-sets", "http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html" and "http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL". * gnu/java/nio/charset/Provider.java: Made charset lookup case-insensitive which fixes bug #11740. 2005-02-03 Dalibor Topic <robilad@kaffe.org> * libraries/javalib/gnu/regexp/RE.java, libraries/javalib/java/io/ObjectInputStream.java, libraries/javalib/java/io/ObjectStreamClass.java, libraries/javalib/java/lang/SecurityManager.java, libraries/javalib/java/security/AllPermission.java, libraries/javalib/java/security/BasicPermission.java, libraries/javalib/java/security/Permissions.java, libraries/javalib/java/text/MessageFormat.java, libraries/javalib/java/util/AbstractList.java: Made 'inner' classes real public static inner classes, and made them final where possible, or removed them where unused. 2005-02-03 Michael Koch <konqueror@gmx.de> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c Fix includes for cairo 0.3.0 snappshot.
* 2005-01-16 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-01-161-30/+31
| | | | | | | | | | | | | Final merge of HEAD patches to generics branch All changes are listed in merged Changelog. In addition, * java/lang/System.java: (getenv()): changed Runtime.securityManager to SecurityManager.current (getenv(String)): likewise (remove(String)): pointed to SystemProperties * gnu/classpath/SystemProperties.java: (remove(String)): implemented and documented
* 2005-01-15 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-01-151-36/+36
| | | | * Merge of October 2004 HEAD patches to generics branch
* 2005-01-10 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2005-01-101-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/AWTKeyStroke.java: Typed static cache and vktable generically (removeEldestEntry(Map.Entry<AWTKeyStroke,AWTKeyStroke>)): typed generically (registerSubclass(Class<?>)): typed generically (readResolve()): removed unnecessary cast (setFocusTraversalKeys(int, Set<? extends AWTKeyStroke>)): typed generically * java/awt/Container.java: (setFocusTraversalKeys(int, Set<? extends AWTKeyStroke>)): typed generically (getFocusTraversalKeys(int)): typed generically * java/awt/GridBagLayout.java: comptable, internalcomptable now generically typed (GridBagLayout()): generic typing (sortBySpan(Component,int,ArrayList<Component>,boolean)): typed generically * java/awt/KeyboardFocusManager.java: (getDefaultFocusTraversalKeys(int)): typed generically * java/awt/dnd/DragGestureRecognizer.java: typed events generically * java/awt/dnd/DropTargetContext.java: removed unnecessary import and added serialization UID * java/awt/im/InputContext.java: typed descriptors and recent generically * java/awt/im/spi/InputMethodContext.java: removed unnecessary import * java/io/DeleteFileHelper.java: filesToDelete typed generically (add(java.io.File)): typed generically (deleteFiles()): iteration changed to foreach * java/io/ObjectInputStream.java: typed objectLookupTable, validators, classLookupTable, oscs generically (resolveProxyClass(String[]): typed generically * java/io/ObjectOutputStream.java: removed unnecessary import typed OIDLookupTable generically * java/io/ObjectStreamClass.java: typed oscs and classLookupTable generically * java/io/ObjectStreamField.java: type typed generically (getType()): typed generically (checkFieldType()): typed generically * java/lang/Byte.java: (compareTo(Object)): removed as unneeded * java/lang/Character.java: (compareTo(Object)): removed as unneeded * java/lang/Class.java: Typing changed from K to T in accordance with docs and semantics (is a type, not a key) (getEnumConstants()): implemented using reflection (isEnum()): implemented using reflection * java/lang/Double.java: (compareTo(Object)): removed as unneeded * java/lang/Float.java: (compareTo(Object)): removed as unneeded * java/lang/InheritableThreadLocal.java: removed invalid static generic typing * java/lang/Integer.java: (compareTo(Object)): removed as unneeded * java/lang/Long.java: (compareTo(Object)): removed as unneeded * java/lang/Short.java: (compareTo(Object)): removed as unneeded * java/util/AbstractQueue.java: Typing changed from T to E in accordance with docs and semantics (is primarily a element) * java/util/Collection.java: (containsAll(Collection<?> c)): typed generically * java/util/EnumMap.java: (EnumMap(Class<K>)): removed invalid array creation * java/util/LinkedHashMap.java: Added generic typing (LinkedHashMap(Map<? extends K, ? extends V>)): added generics (get(Object)): returns V instead of Object (removeEldestEntry(Map.Entry<K,V>)): typed generically * java/util/PriorityQueue.java: removed invalid generic instanceof and generic array creation (iterator().remove()): added reference to outer class * java/util/WeakHashMap.java Added generic typing (WeakHashMap(Map<? extends K, ? extends V>)): added generics (get(Object)): returns V instead of Object (put(K,V)): generically typed (remove(Object)): returns V instead of Object (entrySet()): returns generic set (keySet()): returns generic set (putAll(Map<? extends K, ? extends V>)): generically typed (values()): returns generic collection
* 2004-07-23 Bryce McKinlay <mckinlay@redhat.com>Bryce McKinlay2004-07-231-34/+13
| | | | | | | | | | | | | | | | | | | | | * gnu/java/net/protocol/http/Connection.java: Use GetPropertyAction for privileged getProperty calls. * java/io/ObjectOutputStream.java (getField): No longer static. Use SetAccessibleAction instead of anonymous class for doPrivileged call. (getMethod): Likewise. (setAccessible): New field. PrivilegedAction object to use when calling setAccessible. * java/io/ObjectStreamClass.java (calculateOffsets): Use SetAccessibleAction instead of anonymous class for diPrivileged call. (setFields): Likewise. (getClassUID): Likewise. (findMethod): Likewise. * gnu/java/security/action/GetPropertyAction.java: New class. * gnu/java/security/action/SetAccessibleAction.java: New class. * gnu/java/security/action/Makefile.am: New file. * gnu/java/security/Makefile.am: Updated.
* 2004-07-10 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2004-07-101-0/+49
| | | | | | | | * java/io/ObjectInputStream.java (readObject): Delegate instantation of Externalizable classes to ObjectStreamClass. * java/io/ObjectStreamClass.java (newInstance): New method to instantiate Externalizable (while ignoring the accessibility of the constructor). (constructor): New field to cache the constructor.
* 2004-04-08 Michael Koch <konqueror@gmx.de>Michael Koch2004-04-081-11/+11
| | | | | | | | | | | | | | * java/io/ByteArrayInputStream.java, java/io/DataInput.java, java/io/DataInputStream.java, java/io/InputStream.java, java/io/InputStreamReader.java, java/io/ObjectStreamClass.java, java/io/ObjectStreamField.java, java/io/PushbackReader.java, java/io/StringWriter.java, java/io/Writer.java: Fixed javadocs and style all over.
* * java/io/ObjectInputStream.javaGuilhem Lavaux2004-02-261-2/+32
| | | | | | | | | | | | | | (readClassDescriptor): Keep elements of the mapping non null. (checkTypeConsistency): New method. (readFields): Fixed main loop and base logic. Small reindentation. * java/io/ObjectStreamField.java (lookupField): New method to update the field reference. (checkFieldType): New method. * java/io/ObjectStreamClass.java (setClass, setFields): Call lookupField when building the field database. Check the real field type.
* * java/io/ObjectInputStream.java: Made all callsJeroen Frijters2004-02-021-29/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | to dumpElement[ln] conditional on dump flag. (readObject): Changed to use cached info from ObjectStreamClass. (readClassDescriptor): Cache more information in ObjectStreamClass. (processResolution, readFields): Use cached info from ObjectStreamClass. (newObject): Throw exception instead of returning null for failure. (getField, getMethod, callReadMethod, setBooleanField, setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField, readObjectParams): Removed. (dumpElement, dumpElementln): Removed dump flag condition check. * java/io/ObjectStreamField.java (hasReadMethod): Removed. (setClass): Added call to cacheMethods() (findMethod): New method. (cacheMethods): New method. (ObjectStreamClass): Added call to cacheMethods(). (setFields): Cache fields. (getClassUID): Use AccessController.doPrivileged to invoke setAccessible. (readObjectMethod, readResolveMethod, realClassIsSerializable, realClassIsExternalizable, fieldMapping, firstNonSerializableParent): New fields. * java/io/ObjectStreamField.java (ObjectStreamField): New constructor. (ObjectStreamField): Removed FIXME workaround. (getTypeString, isPrimitive): Made safe for cases where type == null. (setBooleanField, setByteField, setCharField, setShortField, setIntField, setLongField, setFloatField, setDoubleField, setObjectField): New methods.
* 2003-12-30 Michael Koch <konqueror@gmx.de>Michael Koch2003-12-301-1/+1
| | | | | * java/io/ObjectStreamClass.java (getSerialPersistentFields): Little reformating.
* * java/io/ObjectStreamClass.java: Reindented.Guilhem Lavaux2003-12-291-8/+7
| | | | | * java/io/ObjectInputStream.java: Use if instead of catching NullPointerException.
* * java/io/ObjectOutputStream.java,Guilhem Lavaux2003-12-281-371/+377
| | | | | | java/io/ObjectInputStream.java, java/io/ObjectStreamClass.java: Reindented. Some exception message has been added.
* * java/io/ObjectOutputStream.javaGuilhem Lavaux2003-12-281-7/+33
| | | | | | | | | | | | | | | | | | | | | (writeClassDescriptor): Externalizable class must also write their hierarchy. (putFields): Added some text message for an exception. * java/io/ObjectInputStream.java (readClassDescriptor): Documented. Better field checking. (defaultReadObject): Readjusted messages in exceptions. (currentLoader): Documented. (inputGetObjectStreamClasses): Changed indentation. (readFields): Documented. Changed logic to improve error reporting and behaviour compared to the JDK. (readFields): Fixed behaviour. (getField): Documented. Fixed behaviour. (callReadMethod): Invalidate read fields. * java/io/ObjectStreamClass.java (setFields): Fix to avoid a NullPointerException. (getSerialPersistentFields): Documented. Improved modifier checking.
* Merged in three of the four patches about serialization.Guilhem Lavaux2003-12-021-22/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-02 Guilhem Lavaux <guilhem@kaffe.org> * java/io/ObjectInputStream.java: (setBooleanField): Throw an InvalidClassException if the field hasn't the required type. (setByteField): Likewise. (setCharField): Likewise. (setDoubleField): Likewise. (setFloatField): Likewise. (setIntField): Likewise. (setShortField): Likewise. (setLongField): Likewise. (setObjectField): Likewise. 2003-12-02 Guilhem Lavaux <guilhem@kaffe.org> * java/io/ObjectStreamField.java: A few methods were added in prevision of the upcoming upgrade of the serialization code. (ObjectStreamField): We should throw a NullPointerException when 'name' is null. 2003-12-02 Guilhem Lavaux <guilhem@kaffe.org>, Helmer Kraemer <hkraemer@freenet.de> * gnu/java/lang/reflect/TypeSignature.java (getClassForEncoding): Splitted the method so we can specify an explicit boot loader.
* 2003-10-12 Michael Koch <konqueror@gmx.de>Michael Koch2003-10-121-2/+0
| | | | | | | * java/io/FilePermission.java (implies): Removed unused local variables. * java/io/ObjectStreamClass.java (getObjectStreamClasses): Removed unused local variable.
* Reported by Guilhem Lavaux and Julian DolbyMark Wielaard2003-08-161-1/+1
| | | | | * java/io/ObjectStreamClass.java (getSerialPersistentFields): Get the field "serialPersistentFields", not "getSerialPersistentFields".
* 2003-03-23 Michael Koch <konqueror@gmx.de>Michael Koch2003-03-231-8/+8
| | | | | | | | | | | | | | * java/io/DataOutputStream.java (writeDouble): Fixed @see tag. (writeFloat): Fixed @see tag. * java/io/ObjectInputStream.java: Reformated. * java/io/ObjectOutputStream.java: Reformated. * java/io/ObjectStreamClass.java (toString): Fixed @see tags, documentation reformated. * java/io/Writer.java (write): Fixed documentation.
* 2003-03-14 Jeroen Frijters <jeroen@sumatra.nl>Mark Wielaard2003-03-141-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/ObjectInputStream.java (readObject): Cleaned up the class hierarchy loop. (readFields(Object,ObjectStreamField[],boolean)): Changed argument list to Object,ObjectStreamClass, moved callReadMethod code up into readObject and added Class argument to all setXxxField calls. (callReadMethod): Changed Class argument to ObjectStreamClass to be consistent with ObjectOutputStream and to facilitate caching the Method in the future. (setBooleanField): Added Class argument. (setByteField): Likewise. (setCharField): Likewise. (setDoubleField): Likewise. (setFloatField): Likewise. (setIntField): Likewise. (setLongField): Likewise. (setShortField): Likewise. (setObjectField): Likewise. * java/io/ObjectOutputStream.java (writeObject): Cleaned up the class hierarchy loop. (defaultWriteObject): Call writeFields with new argument list. (writeFields(Object,ObjectStreamField[],boolean): Changed argument list to Object,ObjectStreamClass, moved callWriteMethod up into writeObject and added Class argument to all getXxxField calls. (callWriteMethod): Added ObjectStreamClass argument to be able to get the proper class to call getMethod on (each class can have (or not have) its own writeObject method). (getBooleanField): Added Class argument. (getByteField): Likewise. (getCharField): Likewise. (getDoubleField): Likewise. (getFloatField): Likewise. (getIntField): Likewise. (getLongField): Likewise. (getShortField): Likewise. (getObjectField): Likewise. * java/io/ObjectStreamClass.java (hasReadMethod): Added method to facilitate caching the Method object in the future.
* * NEWS: Describe java.io.(VM)ObjectStreamClass.Mark Wielaard2003-01-171-26/+1
| | | | | | | | | | | | | | | * configure.in (AC_OUTPUT): Add vm/reference/java/io/Makefile. * include/java_io_VMObjectOutputStream.h: New pregenerated header file. * java/io/ObjectStreamClass.java (getClassUID): Call VMObjectStreamClass.hasClassInitializer(). (hasClassInitializer): Removed. * native/jni/java-io/Makefile.am (libjavaio_la_SOURCES): Add java_io_ObjectStreamClass.c * native/jni/java-io/java_io_ObjectStreamClass.c: New file. * vm/reference/java/Makefile.am (SUBDIRS): Add io. * vm/reference/java/io/.cvsignore: New file. * vm/reference/java/io/Makefile.am: New file. * vm/reference/java/io/VMObjectStreamClass.java: New class.
* Merge with libgcj.Mark Wielaard2003-01-031-85/+61
| | | | | | | | | | | | | | * java/io/ObjectStreamClass.java (isProxyClass): Now a field. (setClass): Throws InvalidClassException. (setSuperclass): Use getClassUID if not a proxy Class. (setFields): Make sure to call setAccessible(true). (setUID): Renamed to... (getClassUID): Return the uid. Call setAccessible(true) for field. Fall back to Gnu provider SHA algorithm if necessary. (getDefinedSUID): Removed method. (hasClassInitializer): Don't throw NoSuchMethodError. (static): Removed. * java/io/ObjectOutputStream.java (writeObject): Use isProxyClass.
* 2002-03-21 C. Brian Jones <cbj@gnu.org>Brian Jones2002-03-251-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following changes are all from patch submissions from Intel's ORP team to get Classpath into a JBOSS compatible state. This is primarily just the non-public API patches. * java/io/BufferedOutputStream.java (flush): after writing out the current buffer contents flush the underlying output stream * java/io/File.java (File(String,String)): make use of gnu.java.io.PlatformHelper; avoid possible double separator char when setting path (getName): make use of gnu.java.io.PlatformHelper (getAbsolutePath): make use of PlatformHelper; avoid possible double separator char if user.dir ends with separator (getCanonicalPath): mostly replaced with call to gnu.java.io.PlatformHelper.toCanonicalForm() (getParent): make use of gnu.java.io.PlatformHelper (isAbsolute): make use of gnu.java.io.PlatformHelper when checking root prefix (mkdir): make use of gnu.java.io.PlatformHelper to consolidate removal of trailing separator character (list): ditto (toURL): add trailing separator for directory * java/io/ObjectInputStream.java (readObject): place code in finally clause to it always executes (defaultReadObject): change block data mode before/after read (resolveProxyClass): formatting (read): modified algorithm, needs testing (readBoolean): change block data mode as needed (readByte): ditto (readUnsignedByte): ditto (readShort): ditto (readUnsignedShort): ditto (readChar): ditto (readInt): ditto (readLong): ditto (readFloat): ditto (readDouble): ditto (readFields): change block data mode preserving old mode (readFields): ditto; catch NoSuchFieldError and dump error message (dump): set field to false by default to avoid debug messages * java/io/ObjectOutputStream.java (writeObject): save old mode before unsetting block data mode. Handle proxy classes writing instances of Class (annotateProxyClass): new method (drain): conditionally write block data header (close): flush stream before closing (writeBoolean): blockDataOutput instead of dataOutput (writeByte): ditto (writeShort): ditto (writeChar): ditto (writeInt): ditto (writeLong): ditto (writeFloat): ditto (writeDouble): ditto (put): throw IllegalArgumentException if field not found (write): save and reset block data mode (writeArraySizeAndElements): optimize byte array case (writeFields): save and reset block data mode; call ObjectStreamField.getTypeString instead of TypeSignature.getEncodingOfClass (setBlockDataMode): added call to drain() and return boolean oldmode * java/io/ObjectStreamClass.java (lookup): call lookupForClassObject (lookupForClassObject): new method (isProxyClass): new method (setClass): set _isProxyClass (ObjectStreamClass): set _isProxyClass; only set UID if serializable (setFields): code to interoperate with JDK if Throwable serialized form is not the same as the Java API, but commented out * java/io/ObjectStreamConstants.java: (TC_LONGSTRING): new constant (TC_PROXYCLASSDESC): new constant * java/io/ObjectStreamField.java (ObjectStreamField): store typename (ObjectStreamField): new package private constructor for cases where access to a Class is not available (getTypeCode): use stored type name (getTypeString): ditto * java/io/PushbackInputStream.java (available): calculate available correctly (read): recalculate numBytes (skip): skip ahead only the amount available that is already read * java/security/DigestOutputStream.java (write): use out.write instead of super.write * java/security/MessageDigest.java (update): use offset * java/security/PermissionCollection.java (static): do not override private linesep (toString): indicate readonly and output PermissionCollection * java/security/Permissions.java (add): add perm to allPermissions (add): do nothing if permission already added * java/security/Policy.java (static): added static initializer to create policy * java/security/ProtectionDomain.java (toString): output ProtectionDomain * java/security/SecureClassLoader.java (SecureClassLoader): FIXME removed, call SecurityManager.checkCreateClassLoader (SecureClassLoader): call SecurityManager.checkCreateClassLoader * java/net/InetAddress.java (serialVersionUID): needed for serialization compatibility (hostname): renamed hostName (hostname_alias): changed to transient (my_ip[]): ditto (lookup_time): ditto (address): new field for serialization (family): ditto (getHostName): use changed variable name hostName (InetAddress): set family and address * java/net/JarURLConnection.java (JarURLConnection): correct getting of embedded URL * java/net/PlainSocketImpl.java (available): implement natively (getOption): do not synchronize (setOption): ditto (connect): ditto (close): ditto * java/net/URL.java (authority): new field (userInfo): new transient field (ph): changed to transient (URL): removed previous hack of treating the spec URL as a file to append to the context (sameFile): missing brackets and incorrect formatting for the given code make this a great catch (writeObject): new method (readObject): new method, throw IOException for unhandled protocol (getPath): new method (1.3 spec) * java/net/URLClassLoader.java (findClass): handled jars better (findResource): treat as directory if it does not end with .zip or .jar (getURLs): pass unnamed array of the appropriate size to toArray * java/net/URLStreamHandler.java: import gnu.java.io.PlatformHelper (parseURL): simplifying method * java/rmi/MarshalledObject.java (MarshalledObject): implemented (equals): implemented (get): implemented (hashCode): implemented * java/rmi/server/RMIClassLoader.java (MyClassLoader): new constructor (static): initialize state (loadClass): reimplemented; I think the new method may inappropriately miss the use of tok in caching loaders which also means not checking for the loader correctly (getClassAnnotation): implemented * include/java_net_PlainSocketImpl.h: need to write native method available
* Add License clarificationMark Wielaard2002-01-221-5/+16
|
* * gnu/Makefile.am: removed tools from SUBDIRSBrian Jones2001-09-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/image/GdkPixbufDecoder.java: wrapped loadLibrary call within if (Configuration.INIT_LOAD_LIBRARY) * gnu/java/awt/peer/gtk/GtkToolkit.java: same * java/io/File.java: same * java/io/FileDescriptor.java: same * java/io/FileInputStream.java: same * java/io/FileOutputStream.java: same * java/io/ObjectInputStream.java: same * java/io/ObjectOutputStream.java: same * java/io/ObjectStreamClass.java: same * java/io/RandomAccessFile.java: same * java/lang/Double.java: same * java/lang/Float.java: same * java/lang/Math.java: same * java/lang/Object.java: same * java/lang/System.java: same * java/lang/reflect/Array.java: same * java/math/BigInteger.java: same * java/net/InetAddress.java: same * java/net/PlainDatagramSocketImpl.java: same * java/net/PlainSocketImpl.java: same * java/util/ResourceBundle.java: same * java/util/TimeZone.java: same * vm/reference/java/lang/Throwable.java: remove unused loadLibrary call, VMs typically statically link these native methods instead.
* * java/io/ObjectStreamClass.java (setUID): Don't write interfaceTom Tromey2001-03-091-5/+9
| | | | info for array classes.
* * Release classpath-0.02Brian Jones2001-01-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/www.gnu.org/announce/20010106.mhtml: New file. * resource/japhar-0.09.patch.1: New file; patch for Japhar 0.09 for GNU Classpath 0.02 release. * NEWS: Added 0.02 release information. * configure.in: Update release number, add additional Makefile output files. * doc/Makefile.am: New target 'docs' can be used to generate formal postscript documentation. * doc/texinfo.tex: Updated to tetex 1.0.7 release. * doc/www.gnu.org/classpath.mhtml: Notice of license change and other small enhancements. * gnu/java/beans/Makefile.am: Removed ChangeLog from EXTRA_DIST * gnu/java/beans/editors/Makefile.am: Ditto. * gnu/java/beans/info/Makefile.am: Ditto. * gnu/java/io/Makefile.am: Ditto * gnu/java/io/decode/Makefile.am: Ditto. * gnu/java/io/encode/Makefile.am: Ditto. * gnu/java/lang/Makefile.am: Ditto. * gnu/java/lang/reflect/Makefile.am: Ditto. * gnu/java/net/content/text/Makefile.am: Ditto. * java/beans/Makefile.am: Ditto. * java/lang/reflect/Makefile.am: Ditto. * java/net/Makefile.am: Ditto. * java/util/Makefile.am: Ditto. * resource/Makefile.am: Add japhar-0.09.patch.1 to EXTRA_DIST * resource/java/security/Makefile.am: Rules to install security policy in $(libdir)/security. * java/beans/PropertyDescriptor.java: Fix comment. * java/io/PushbackReader.java: Fix comment. * java/io/ObjectStreamClass.java: Fix comment. * java/io/DataInputStream.java: Fix comment. * java/io/PipedInputStream.java: Fix comments. * java/io/PipedReader.java: Fix comments. * java/sql/DatabaseMetaData.java: Fix comments.
* * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.Warren Levy2000-09-081-0/+4
| | | | | | | | | * java/beans/PropertyVetoException.java (serialVersionUID): Added. * java/io/ObjectOutputStream.java (writeObject): Initialized fieldsAlreadyWritten before recursion rather than after. * java/io/ObjectStreamClass.java (serialVersionUID): Added. Serialization mods merged from libgcj.
* * ObjectInputStream.java (readFields): Turn offWarren Levy2000-08-041-7/+7
| | | | | | | | | | | | | | | | | | | | | readDataFromBlock while reading via GetField. (GetField$1.get(String, Object)): Pass Class of default value to getField. (getField): Allow for null default values. * ObjectOutputStream.java: Fixed typo in comment. (PutField$1.put): Fixed calls of checkType in most of the put methods to pass the correct parameter. (PutField$1.put(String, Object)): Allow for null value arg. (PutField$1.write): Turn off writeDataAsBlocks while writing via PutField. * ObjectStreamClass.java (serialPersistentFields): Fixed typo in spec'ed field name. (getSerialPersistentFields): Changed spelling of method to match the correct spelling of the spec'ed field name. More serialization fixes per Mauve results.
* * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 soWarren Levy2000-07-271-9/+63
| | | | | | | | | | | | | | | | spurious bits don't cause discrepancies. * ObjectOutputStream.java: Fixed typo in comment. * ObjectStreamClass.java: Merged with libgcj. Fixed typos in comments. (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize. (getDefinedSUID): Removed native method. (getSerialPersistantFields): Removed native method. (hasClassInitializer): Removed native method. * Makefile.am: Removed reference to java_io_ObjectStreamClass.c. Serialization mods.
* Change license to libgcc-like terms.Paul Fisher2000-03-161-20/+27
| | | | Fix copyright years.
* Added Get/PutField support.Geoff Berry1999-11-231-279/+276
|
* Ensure javaio native library loadedAaron M. Renn1998-12-271-2/+2
|
* Added Persistant Fields API support.Geoff Berry1998-10-291-73/+117
|
* Changed copyright assignment to FSF.Geoff Berry1998-08-301-1/+1
|
* Renamed OSCField to ObjectStreamField to match JDK1.2b4 spec. ChangedGeoff Berry1998-07-291-32/+9
| | | | all usage of OSCField to ObjectStreamField.
* Added setter methods used to reconstruct ObjectStreamClass objectsGeoff Berry1998-07-211-76/+119
| | | | from the stream.
* See ChangeLog.Geoff Berry1998-07-071-32/+19
|
* Added comments for gnu/java/lang/reflect/TypeSignature.javaGeoff Berry1998-07-071-73/+177
| | | | | | | | java/io/ObjectStreamClass.java java/io/ObjectStreamConstants.java native/java.io/java_io_ObjectStreamClass.c Added initialization of int d2 in mergeSort(Object[],Comparator) to placate javac.
* Added files needed for writing out serialized objects.Geoff Berry1998-07-041-0/+444
Modified Makefiles to included added subdirectories.