aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2000-09-11Field.java (toString): Don't rely on Class.toString.Tom Tromey2-8/+416
* java/lang/reflect/Field.java (toString): Don't rely on Class.toString. From-SVN: r36341
2000-09-11BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv.Tom Tromey1-0/+21
* gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let default decoder use iconv. * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder): Let default encoder use iconv. * configure: Rebuilt. * configure.in: Check for nl_langinfo and <langinfo.h>. * java/lang/natSystem.cc (file_encoding): New function. (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible. From-SVN: r36306
2000-09-08PropertyChangeEvent.java (serialVersionUID): Added.Warren Levy28-34/+113
* java/beans/PropertyChangeEvent.java (serialVersionUID): Added. * java/beans/PropertyVetoException.java (serialVersionUID): Added. * java/io/File.java (writeObject): Added. (readObject): Added. (serialVersionUID): Added. * java/io/ObjectOutputStream.java (writeObject): Initialized fieldsAlreadyWritten before recursion rather than after. * java/io/ObjectStreamClass.java (serialVersionUID): Added. * java/io/OptionalDataException.java (serialVersionUID): Added. (OptionalDataException): Made package private. * java/io/SyncFailedException.java (SyncFailedException): Removed default constructor to match spec. * java/lang/Boolean.java (serialVersionUID): Added. * java/lang/Byte.java (serialVersionUID): Added. * java/lang/Character.java (serialVersionUID): Added. * java/lang/Double.java (serialVersionUID): Added. * java/lang/Float.java (serialVersionUID): Added. * java/lang/Integer.java (serialVersionUID): Added. * java/lang/Long.java (serialVersionUID): Added. * java/lang/Number.java (serialVersionUID): Added. * java/lang/Short.java (serialVersionUID): Added. * java/lang/String.java (serialVersionUID): Added. * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor to match spec. * java/lang/reflect/InvocationTargetException.java (serialVersionUID): Added. * java/net/URL.java (handler): Made transient. (hashCode): Added field for serialization, per spec. and use cached value if available. (serialVersionUID): Added. (URL): Initialize hashCode. (set): Adjust hashCode. (readObject): New Method to initialize the protocol handler when deserializing. (writeObject): New method. * java/text/BreakIterator.java: Removed 'implements Serializable'. * java/text/Collator.java: Removed 'implements Serializable'. * java/util/GregorianCalendar.java (serialVersionUID): Added. * java/util/Properties.java (serialVersionUID): Added. * java/util/Random.java (serialVersionUID): Added. (seed): Made private. (nextNextGaussian): Made private. (haveNextNextGaussian): Made private. * java/util/Stack.java (serialVersionUID): Added. * java/util/TimeZone.java (serialVersionUID): Added. * java/util/Vector.java (serialVersionUID): Added. Serialization mods. From-SVN: r36272
2000-09-07Makefile.am (Thread.h): Don't be friends with native threads functions.Bryce McKinlay1-1/+1
2000-09-07 Bryce McKinlay <bryce@albatross.co.nz> * Makefile.am (Thread.h): Don't be friends with native threads functions. * Makefile.in: Rebuilt. * java/lang/Thread.java (interrupt_flag): Make package-private. From-SVN: r36234
2000-09-06Constructor.java (toString): Use `getName' for parameter types.Tom Tromey2-3/+3
* java/lang/reflect/Constructor.java (toString): Use `getName' for parameter types. * java/lang/reflect/Method.java (toString): Use `getName' for return type. From-SVN: r36214
2000-09-06natMethod.cc (_Jv_CallAnyMethodA): Accept null `args' if method takes no ↵Tom Tromey1-2/+6
parameters. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null `args' if method takes no parameters. From-SVN: r36209
2000-09-06Fix for PR java.lang/339:Tom Tromey1-33/+116
* java/lang/natPosixProcess.cc (fail): New function. (cleanup): New function. (startProcess): Use them. Create pipe so child can communicate exec failure back to parent. From-SVN: r36202
2000-09-06* java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.Bryce McKinlay1-1/+1
From-SVN: r36170
2000-09-05natPlainDatagramSocketImpl.cc: Change various `JvThrow' calls to `throw'.Bryce McKinlay3-80/+103
2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow' calls to `throw'. (send): Undo last patch. Remove the label only. (mcastGrp): Ditto. * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to `throw'. * java/net/natInetAdress.cc: Ditto. From-SVN: r36165
2000-09-05natIconv.cc (read): Remove unused local.Bryce McKinlay3-8/+4
2000-09-05 Bryce McKinlay <bryce@albatross.co.nz> * gnu/gcj/convert/natIconv.cc (read): Remove unused local. (write): Ditto. * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null stack. Synchronize. * java/lang/fdlibm.h: #undef __P if previously defined. * java/lang/natSystem.cc (currentTimeMillis): Remove unused local. * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable block. (mcastGrp): Ditto. From-SVN: r36158
2000-09-04ZipFile.java (ZipFile): Delete file when opened in DELETE mode.Tom Tromey1-1/+1
* java/util/zip/ZipFile.java (ZipFile): Delete file when opened in DELETE mode. From-SVN: r36144
2000-09-04re GNATS java.io/203 (File.createTempFile doesn't close descriptor)Anthony Green2-16/+45
Fix for PR java.io/203: * java/io/File.java (createTempFile): Obey directory argument. Use java.io.tmpdir if needed. Don't leave FileDescripators open. * java/lang/natSystem.cc (init_properties): Use TMPDIR environment variable to set java.io.tmpdir on non-WIN32 systems. From-SVN: r36143
2000-09-04File.java (deleteOnExit): New method.Anthony Green2-1/+19
* java/io/File.java (deleteOnExit): New method. * gnu/gcj/runtime/FileDeleter.java: New class. * java/lang/natRuntime.cc (exit): Call FileDeleter.deleteOnExitNow() * Makefile.am: Add FileDeleter.java. * Makefile.in: Rebuilt. From-SVN: r36141
2000-09-01StreamTokenizer.java: Don't throw a NumberFormatException if a field is ↵Andrew Haley1-5/+19
numeric as far as the... 2000-09-01 Andrew Haley <aph@redhat.com> * java/io/StreamTokenizer.java: Don't throw a NumberFormatException if a field is numeric as far as the StreamTokenizer is concerned but not as far as Double.valueOf() is concerned: return a zero instead. For gcj/141. From-SVN: r36100
2000-08-29BitMaskExtent.java, [...]: Removed Latin-1 copyright symbols.Tom Tromey22-24/+29
* gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java, gnu/gcj/awt/ComponentDataBlitOp.java, gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java, java/awt/RenderingHints.java, java/awt/color/ColorSpace.java, java/awt/color/ICC_ColorSpace.java, java/awt/color/ICC_Profile.java, java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java, java/awt/image/ComponentColorModel.java, java/awt/image/ComponentSampleModel.java, java/awt/image/DataBuffer.java, java/awt/image/DataBufferByte.java, java/awt/image/DataBufferInt.java, java/awt/image/DataBufferUShort.java, java/awt/image/DirectColorModel.java, java/awt/image/IndexColorModel.java, java/awt/image/PackedColorModel.java, java/awt/image/Raster.java, java/awt/image/RasterOp.java, java/awt/image/SampleModel.java, java/awt/image/SinglePixelPackedSampleModel.java, java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java: Removed Latin-1 copyright symbols. * java/util/zip/ZipFile.java: Indentation fixes. From-SVN: r36027
2000-08-27ZipFile.java: Implement OPEN_DELETE mode...Mark Wielaard2-14/+43
* java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new constructor, close can delete the file, finalize calls close. * java/util/jar/JarFile.java: Constructor that takes mode now calls super. From-SVN: r36007
2000-08-27ArrayList.java, [...]: Imported from GNU Classpath.Anthony Green9-0/+3072
2000-08-27 Anthony Green <green@redhat.com> * java/util/ArrayList.java, java/util/Timer.java, java/util/LinkedList.java, java/util/TimerTask.java, java/util/HashMap.java, java/util/AbstractMap.java, java/util/SortedMap.java, java/util/AbstractSequentialList.java, java/util/SortedSet.java: Imported from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Added new files. From-SVN: r36006
2000-08-26Makefile.in: Rebuilt.Anthony Green1-24/+21
2000-08-26 Anthony Green <green@redhat.com> * Makefile.in: Rebuilt. * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a friend. * prims.cc: Include ClassLoader.h. (_Jv_RunMain): When executing jar files, classpath must be the jar file only. Lose our reference to the system ClassLoader in order to get a new one with the correct classpath. * java/lang/natSystem.cc (init_properties): When executing a jar file, only use the jar file for java.class.path. * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name for bytecode archives. * gnu/gcj/runtime/FirstThread.java: Handle case where manifest exists, but not Main-Class. From-SVN: r35999
2000-08-24InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has ↵Mark Wielaard1-0/+2
no more data for the Inflater. * java/util/zip/InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has no more data for the Inflater. From-SVN: r35963
2000-08-24PrintWriter.java (print(String)): Don't catch IOException, write(String) ↵Mark Wielaard1-8/+1
already does. * java/io/PrintWriter.java (print(String)): Don't catch IOException, write(String) already does. From-SVN: r35937
2000-08-21ResourceBundle.java (trySomeGetBundle): Removed debugging prints.Tom Tromey1-16/+12
* java/util/ResourceBundle.java (trySomeGetBundle): Removed debugging prints. From-SVN: r35859
2000-08-21natSystem.cc (init_properties): Change sourceware reference to ↵Anthony Green4-11/+279
sources.redhat.com. Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com> * java/lang/natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. * include/java-props.h: Add _Jv_Jar_Class_Path. * prims.cc: Ditto. Set it from `gij -jar file' option. * java/lang/natSystem.cc (init_properties): Set java.class.path from {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .} * java/util/PropertyPermission.java: Import from GNU Classpath. * Makefile.in: Rebuilt. * Makefile.am: Add java/util/PropertyPermission.java. * java/lang/System.java: Add setProperty method. * gij.cc (main): Add -jar option to execute jar files. (help): Describe -jar option. * prims.cc (_Jv_RunMain): Add support for jar execution mode. * gnu/gcj/tools/Gij.java: New file. * include/jvm.h: Add is_jar argument to _Jv_RunMain. * gnu/gcj/runtime/FirstThread.java (main): New method. * java/util/jar/Attributes.java: Correct comment spelling. From-SVN: r35829
2000-08-20Adler32.java: Make private variables really privateMark Wielaard7-6/+25
2000-08-20 Mark Wielaard <mark@klomp.org> * java/util/zip/Adler32.java: Make private variables really private * java/util/zip/CRC32.java: Make private variables really private * java/util/zip/CheckedInputStream.java: skip() could skip to much bytes * java/util/zip/InflaterInputStream.java: skip() could skip to much bytes * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input * java/util/zip/ZipFile.java: size() new 1.2 method * java/util/zip/ZipInputStream.java: Use createZipEntry not new ZipEntry. since 1.2 available() always returns just 1 or 0 when closed From-SVN: r35826
2000-08-20JarFile.java: Don't call java.util.zip.ZipFile.getEntry twice.Anthony Green1-1/+1
* java/util/jar/JarFile.java: Don't call java.util.zip.ZipFile.getEntry twice. From Mark Wielaard <mark@klomp.org>. From-SVN: r35824
2000-08-20URLClassLoader.java: Find the JarEntry via the JarFile.Anthony Green4-20/+21
Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com> * java/net/URLClassLoader.java: Find the JarEntry via the JarFile. * java/net/JarURLConnection.java: getEntry doesn't take any arguments. Return null if element is null. * java/util/zip/ZipFile.java (getInputStream): Read the compressed size from the archive, not the inflated size. * java/util/jar/JarFile.java (getEntry): Don't recurse. Call java.util.zip.ZipFile.getEntry. * gij.cc (help): Change sourceware reference to sources.redhat.com. From-SVN: r35821
2000-08-19ZipInputStream.java (createZipEntry): Implemented.Tom Tromey2-5/+5
* java/util/zip/ZipInputStream.java (createZipEntry): Implemented. From-SVN: r35810
2000-08-19Attributes.java, [...]: Imported from Classpath.Anthony Green28-400/+5379
Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com> * java/util/jar/Attributes.java, java/util/jar/JarEntry.java, java/util/jar/JarException.java, java/util/jar/JarFile.java, java/util/jar/JarInputStream.java, java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java, java/util/Set.java, java/util/Map.java, java/util/Bucket.java, java/util/AbstractSet.java, java/util/BasicMapEntry.java, java/security/cert/CRL.java, java/security/cert/CRLException.java, java/security/cert/Certificate.java, java/security/cert/CertificateEncodingException.java, java/security/cert/CertificateException.java, java/security/cert/CertificateExpiredException.java, java/security/cert/CertificateFactory.java, java/security/cert/CertificateFactorySpi.java, java/security/cert/CertificateNotYetValidException.java, java/security/cert/CertificateParsingException.java, java/security/cert/X509CRL.java, java/security/cert/X509CRLEntry.java, java/security/cert/X509Certificate.java, java/security/cert/X509Extension.java: Imported from Classpath. * java/util/Hashtable.java: Imported from Classpath. * java/util/zip/ZipInputStream.java: Create stub for createZipEntry. * gcj/javaprims.h: Updated class list. * Makefile.in, gcj/Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Add these new classes. From-SVN: r35809
2000-08-17natClass.cc (finit_name): Initialized with `finit$'.Alexandre Petit-Bianco1-4/+13
2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com> * java/lang/natClass.cc (finit_name): Initialized with `finit$'. (finit_leg_name): New global. (java::lang::Class::getDeclaredMethods): Test for `finit$' or `$finit$'. This is a backward compatibility hack. (java::lang::Class::_getMethods): Likewise. (http://sources.redhat.com/ml/java-discuss/2000-08/msg00031.html See also the matching compiler patch: http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00664.html) From-SVN: r35769
2000-08-16ComponentDataBlitOp.java: New file.Rolf W. Rasmussen22-193/+2242
* gnu/gcj/awt/ComponentDataBlitOp.java: New file. * gnu/gcj/awt/GLightweightPeer.java: New file. * java/awt/BorderLayout.java: Implemented all methods. * java/awt/Button.java (actionListener, actionCommand): Renamed and modifier change. (addNotify): Call super. (dispatchEventImpl): New method. (getListeners): New method. (label): Made package-private, not private. * java/awt/Canvas.java: Implemented class body. * java/awt/Color.java (brighter): New method. (darker): New method. (hashCode): New method. * java/awt/Component.java (visible, enabled, eventMask): Set defaults. (getGraphicsConfiguration): Delegate to getGraphicsConfigurationImpl(). (getGraphicsConfigurationImpl): New method. (getToolkit): Only return value from peer if not null. (isDisplayable): Check with parent. (isShowing): No parent implies not showing. (getForeground): Check parent property if local is null. (getBackground): Likewise. (getFont): Likewise. (setForeground): Inform peer. (setBackground): Likewise (setLocale): Invalidate component. (getColorModel): Implemented. (setLocation): Invalidate, or ignore if no change. (setSize): Invalidate, or ignore if no change. (setBounds): Invalidate, or ignore if no change. (isOpaque): By default, heavyweight implies opaque. (isLightweight): Implemented. (getMaximumSize): Implemented. (doLayout): Implemented, NOP. (validate): Implemented, NOP. (invalidate): Only propagate to parent if parent was valid. (getGraphics): Implemented. (getFontMetrics): Implemented. (update): Implemented. (paintAll): Implemented. (repaint): Implemented all repaint methods. (print): Implemented. (printAll): Implemented. (createImage): Implemented. (dispatchEvent): Give the peer a chance to handle the event. (dispatchEventImpl): Dispatch paint events. (enableEvents): Lightweights enable events on parent component. (coalesceEvents): Coalesce paint events, and select event type using a switch. (coalescePaintEvents): New method. (processEvent): Fix unfortunate ordering of statements, and call correct method for MOUSE_CLICKED. (processPaintEvent): New method. (addNotify): Allow container to notify children before event mask is set in peer. (addNotifyContainerChildren): New method. (removeNotify): Visibility should not change on removeNotify. (paramString): Implemented. (list): Implemented two of the list methods. * Container (myInsets): Removed, insets are managed by peer. (getInsets): Query peer. (addImpl): Fix reparenting, enable events for lightweights, initialize component array. (validate): Call doLayout in validateTree() instead. (validateTree): Do nothing if already valid. Call beginValidate(), endValidate() on peer. Call validateTree() instead of validate() for children that are containers. Mark valid after validation of children. (setFont): Partial implementation. (paint): Implemented. (visitChildren): New method. (visitChild): New method. (update): Implemented. (print): Implemented. (paintComponents): Implemented. (printComponents): Consider translation and clipping. (getComponentAt): Ignore invisible children. Return this if no child match. (addNotify): Call super. (addNotifyContainerChildren): New method. (paramString): Implemented. (list): Implemented. * java/awt/EventQueue (invokeAndWait): Get system event queue the right way. (invokeLater): Likewise. (isDispatchThread): Likewise. * java/awt/FontMetrics (getLeading): Formula change. (getDescent): Consider leading also. (getMaxAscent): Default to getAscent(). (getMaxDescent): Default to getDescent. (getMaxAdvance): Return value signifying unknown. (charWidth): Both methods implemented. (charsWidth): Implemented. (bytesWidth): Implemented. (getWidths): Implemented. * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable, state): New fields. (Frame): Rearragend constuctor chaining to disallow null being passed as a graphics configuration. (getTitle): Return empty string if null. (dispose): Removed. (getIconImage): New method. (setIconImage): New method. (finalize): New method. (setMenuBar): Notify peer. (isResizable): New method. (setResizable): New method. (getState): New method. (getFont): Removed. (remove): Implemented. (removeNotify): New method. (getFrames): New method. * java/awt/Graphics.java: Implemented body of class. * java/awt/Graphics2D.java: New file. * java/awt/GraphicsConfiguration.java: Enabled part of the API. * java/awt/Image.java: Implemented body of class. * java/awt/Panel.java (Panel): Call correct super constructor. (addNotify): Implemented. * java/awt/Rectangle.java (isEmpty): Fixed reversed logic. * java/awt/RenderingHints.java: New file. * java/awt/Toolkit.java (createComponent): Implemented. (getSystemEventQueue): Delegate to getSystemEventQueueImpl(). * java/awt/Window.java (Window): Two new constructors. Reordered constructor chaining. (getGraphicsConfigurationImpl): New method. (finalize): Call super. (addNotify): Call super. (pack): Do layout stuff. (show): Ensure that peer exists and that component is valid. (dispose): Dispose owned children. (getOwner): Simplify code, casting null pointers is valid. (getGraphicsConfiguration): Ask peer if local value is null. * java/awt/event/ActionEvent.java (getActionCommand): Renamed from getcmd(). * java/awt/image/BufferedImage.java: New file. * java/awt/image/RasterOp.java: New file. * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration): More powerfull replacement for getColorModel(). (getColorModel) Removed. (setEventMask) New method. * Makefile.am: Added new files. * Makefile.in: Rebuilt. From-SVN: r35748
2000-08-16* java/io/ByteArrayOutputStream.java: Merged with Classpath.Tom Tromey1-10/+158
From-SVN: r35736
2000-08-11natPlainSocketImpl.cc (bind): Don't go to error case when errno not set.Tom Tromey2-15/+27
* java/net/natPlainSocketImpl.cc (bind): Don't go to error case when errno not set. (connect): Likewise. (accept): Likewise. (getOption): Likewise. * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error case when errno not set. (peek): Likewise. (send): Likewise. (receive): Likewise. (mcastGrp): Likewise. (setOption): Likewise. (getOption): Likewise. From-SVN: r35617
2000-08-10Connection.java (gotHeaders): Removed.Bryce McKinlay1-9/+17
2000-08-10 Bryce McKinlay <bryce@albatross.co.nz> John Stracke <francis@ecal.com> * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed. (connect): Don't falsely claim HTTP/1.1 compliance. Call getHttpHeaders(). (disconnect): Don't unset connected flag. (getHeaderField (String)): Call connect() if not connected. (getHeaderField (int)): Ditto. (getHeaderFieldKey): Ditto. (getHttpHeaders): Don't call connect(). * java/net/HttpURLConnection.java (instanceFollowRedirects, gotResponseVals): New fields. (getResponseCode): Call getResponseVals() conditionally. (getResponseMessage): Ditto. (getResponseVals): Call connect(). Don't throw FileNotFoundException. From-SVN: r35603
2000-08-09Makefile.am: Move beans and applet classes to awt_java_source_files.Bryce McKinlay13-122/+320
2000-08-09 Bryce McKinlay <bryce@albatross.co.nz> * Makefile.am: Move beans and applet classes to awt_java_source_files. * Makefile.in: Rebuilt. * java/awt/Color.java (getTransparency): New method. * java/awt/Component.java: Various updates. * java/awt/Container.java (removeNotify): Call super.removeNotify() after dealing with children. * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport. * java/awt/Window.java: Various new methods and updates. * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID to int for switch. * java/awt/event/KeyEvent.java (paramString): Initialize `r'. * java/awt/event/WindowEvent.java (paramString): Ditto. * java/awt/geom/Dimension2D.java (clone): Wrap super call with try/catch block. * java/awt/geom/Point2D.java (clone): Ditto. * java/awt/geom/RectangularShape.java (clone): Ditto. * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha, isAlphaPremultiplied): Make package-private, not private. From-SVN: r35589
2000-08-08Method.java (hashCode): Use getName().Tom Tromey2-2/+6
* java/lang/reflect/Method.java (hashCode): Use getName(). (toString): Likewise. * java/lang/reflect/natMethod.cc (getType): Initialize exception_types. From-SVN: r35561
2000-08-07PipedInputStream.java (read(byte[],int,int)): Mostly rewrote.Tom Tromey3-112/+80
* java/io/PipedInputStream.java (read(byte[],int,int)): Mostly rewrote. (receive): Streamlined. From-SVN: r35556
2000-08-06PrintWriter.java: Merged comments from Classpath.Tom Tromey1-29/+278
* java/io/PrintWriter.java: Merged comments from Classpath. (printlnUnsynchronized): Removed. (println()): Print the separator. (println): Call println(), not printlnUnsynchronized. (out): Now protected, to match spec. From-SVN: r35512
2000-08-06StreamTokenizer.java (TT_NONE): Now private.Tom Tromey1-2/+6
* java/io/StreamTokenizer.java (TT_NONE): Now private. (nextToken): Handle backslashed newline. From Oskar Liljeblad. For PR java.io/301. From-SVN: r35511
2000-08-04ObjectInputStream.java (readFields): Turn off readDataFromBlock while ↵Warren Levy3-17/+30
reading via GetField. * java/io/ObjectInputStream.java (readFields): Turn off readDataFromBlock while reading via GetField. (GetField$1.get(String, Object)): Pass Class of default value to getField. (getField): Allow for null default values. * java/io/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. * java/io/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 errors. From-SVN: r35468
2000-08-03Makefile.am: Add new AWT stubs.Bryce McKinlay14-41/+404
* Makefile.am: Add new AWT stubs. * java/awt/Canvas.java: New placeholder class. * java/awt/Checkbox.java: Ditto. * java/awt/CheckboxMenuItem.java: Ditto. * java/awt/Choice.java: Ditto. * java/awt/Dialog.java: Ditto. * java/awt/FileDialog.java: Ditto. * java/awt/List.java: Ditto. * java/awt/ScrollPane.java: Ditto. * java/awt/TextField.java: Ditto. * java/awt/datatransfer/Clipboard.java: Ditto. * java/awt/Component.java (treeLock): Now a static String. Add comment. * java/awt/MenuItem.java (MenuItem): Add default constructor. * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. Some commented out. Partially implemented. * java/awt/natToolkit.cc: Removed file. From-SVN: r35450
2000-08-02Makefile.in: Rebuilt.Tom Tromey4-52/+11
* Makefile.in: Rebuilt. * Makefile.am (libgcj_la_SOURCES): Added posix.cc. * java/net/natPlainSocketImpl.cc: Include posix.h. (accept): Use _Jv_select. * java/net/natPlainDatagramSocketImpl.cc: Include posix.h. (receive): Use _Jv_select. * java/io/natFileDescriptorPosix.cc: Include posix.h. (available): Use _Jv_select. * java/lang/natSystem.cc: Include posix.h. (currentTimeMillis): Use _Jv_gettimeofday. * include/posix.h: New file. * posix.cc: New file. From-SVN: r35435
2000-08-02[multiple changes]Bryce McKinlay1-1/+1
2000-08-02 Bryce McKinlay <bryce@albatross.co.nz> * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed to match C declaration in ffi.h. * Makefile.am: Add java/awt/Button.java. * Makefile.in: Rebuilt. 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com> * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the cast of the second argument to `ffi_raw_call' changed to match prototype. 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com> * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second argument to `ffi_raw_call' changed to match prototype. From-SVN: r35418
2000-07-31Component.java (toString): Implemented.Bryce McKinlay2-9/+1
* java/awt/Component.java (toString): Implemented. * java/awt/Container.java (addImpl): Remove FIXME. Only call dispatchEvent() to dispatch the event. (removeImpl): Ditto. From-SVN: r35363
2000-07-31Component.java: Add treeLock object.Anthony Green1-4/+10
2000-07-30 Anthony Green <green@redhat.com> * java/awt/Component.java: Add treeLock object. (getTreeLock): Implement. (isShowing): Implement. From-SVN: r35362
2000-07-31BorderLayout.java (BorderLayout()): New constructor.Tom Tromey9-89/+313
* java/awt/BorderLayout.java (BorderLayout()): New constructor. * java/awt/Frame.java (Frame): Pass `null' to Window constructor. * java/awt/Window.java (addNotify): Wrote. (addWindowListener): Wrote. (getLocale): Wrote. (getWarningString): Wrote. (processEvent): Wrote. (processWindowEvent): Wrote. (removeWindowListener): Wrote. (show): Call validate(), setVisible(). (toBack): Wrote. (toFront): Wrote. * java/awt/Toolkit.java (createWindow): Declare. * java/awt/Frame.java (addNotify): Use getToolkit to find toolkit. * java/awt/Component.java (invalidate): Wrote. (isValid): Wrote. (getToolkit): Wrote. * java/awt/Container.java (addContainerListener): Removed unnecessary cast. (removeContainerListener): Likewise. (addImpl): Wrote. (add(Component)): Use it. (add(String,Component)): Likewise. (add(Component,int)): Likewise. (add(Component,Object)): Likewise. (add(Component,Object,int)): Likewise. (doLayout): Wrote. (getAlignmentX): Wrote. (getAlignmentY): Wrote. (getComponentAt): Wrote. (getMaximumSize): Wrote. (invalidate): Wrote. (list(PrintStream,int)): Wrote. (list(PrintWriter,int)): Wrote. (getMinimumSize): Wrote. (getPreferredSize): Wrote. (printComponents): Wrote. (processContainerEvent): Look at containerListener, not componentListener. (remove): Added event processing and peer destruction. (removeAll): Use remove. (removeNotify): Wrote. (validate): Wrote. (validateTree): Wrote. * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists. * java/awt/Label.java (addNotify): Do nothing if peer exists. * java/awt/Container.java (addNotify): Don't create Container peer. * java/awt/Button.java (addNotify): Do nothing if peer exists. From-SVN: r35361
2000-07-30Container.java (remove(int)): Wrote.Tom Tromey6-46/+203
* java/awt/Container.java (remove(int)): Wrote. (remove(Component)): Wrote. (add(Component)): Wrote. (add(Component,int)): Wrote. (removeAll): Wrote. (addNotify): Set our own peer. * java/awt/Scrollbar.java (listeners): Changed type. (Scrollbar): Don't initialize listeners. (addNotify): Wrote. (setValue): Call setValues. (setMinimum): Likewise. (setMaxPriority): Likewise. (setVisibleAmount): Likewise. (setValues): Wrote. (setUnitIncrement): Forward to peer. (setLineIncrement): Call setUnitIncrement. (setPageIncrement): Call setBlockIncrement. (setBlockIncrement): Forward to peer. (addAdjustmentListener): Rewrote. (removeAdjustmentListener): Rewrote. (processAdjustmentEvent): Rewrote. (paramString): Wrote. * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Button.java. * java/awt/Button.java: New file. * java/awt/Toolkit.java (createLabel): Declare. (createButton): Likewise. (createScrollbar): Likewise. (createContainer): Likewise. * java/awt/Label.java (addNotify): Wrote. (setAlignment): Call setAlignment in the peer. (setText): Call setText in the peer. From-SVN: r35354
2000-07-28ObjectOutputStream.java (writeObject): Per spec, call ↵Warren Levy1-6/+2
NotSerializableException with just the class name. * java/io/ObjectOutputStream.java (writeObject): Per spec, call NotSerializableException with just the class name. From-SVN: r35325
2000-07-28ObjectStreamException.java: Made constructors protected.Warren Levy1-2/+2
* java/io/ObjectStreamException.java: Made constructors protected. Adjusts serialVersionUID. From-SVN: r35315
2000-07-28OutputStreamWriter.java (close): Only flush if not closed.Tom Tromey1-2/+2
* java/io/OutputStreamWriter.java (close): Only flush if not closed. From-SVN: r35309
2000-07-27mauve-libgcj: Activated serialization tests.Warren Levy9-14/+17
* mauve-libgcj: Activated serialization tests. * gcj/field.h (getModifiers): Mask off unknown flags. * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so spurious bits don't cause discrepancies. * java/io/ObjectOutputStream.java: Fixed typo in comment. * java/io/ObjectStreamClass.java: Fixed typos in comments. (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize. (hasClassInitializer): Call getDeclaredMethod instead of getMethod. * java/lang/Throwable.java (serialVersionUID): New field. * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used. * java/lang/reflect/natConstructor.cc (getModifiers): Mask off unknown flags. * java/lang/reflect/natMethod.cc: Ditto. * java/security/Key.java (serialVersionUID): Removed field for now. * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto. * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto. Serialization mods. From-SVN: r35302
2000-07-27RectangularShape.java (getPathIterator): Wrote.Tom Tromey1-3/+1
* java/awt/geom/RectangularShape.java (getPathIterator): Wrote. From-SVN: r35295