Tom Tromey
5f9cea34bb
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (lib_gnu_awt_xlib_la_LDFLAGS): Link against
libstdc++.
From-SVN: r62291
2003-02-02 23:06:39 +00:00
Mark Wielaard
ccbaec264d
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (gtk_c_headers): Strip trailing / from jniinclude.
From-SVN: r62231
2003-02-01 01:36:17 +00:00
Tom Tromey
9bc825c4ba
jni.cc (_Jv_JNI_NewObjectArray): Check that initializer can be cast to element type.
...
* jni.cc (_Jv_JNI_NewObjectArray): Check that initializer can be
cast to element type.
(_Jv_JNI_SetObjectArrayElement): Check array bounds.
(_Jv_JNI_GetObjectArrayElement): Likewise.
From-SVN: r62210
2003-01-31 22:50:48 +00:00
Tom Tromey
072b0db2e3
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (cond_x_ltlibrary): Renamed library to
lib-gnu-awt-xlib.la.
(lib_gnu_awt_xlib_la_SOURCES): Renamed.
(EXTRA_lib_gnu_awt_xlib_la_SOURCES): Likewise.
(lib_gnu_awt_xlib_la_DEPENDENCIES): Likewise.
(lib_gnu_awt_xlib_la_LIBADD): Likewise.
(lib_gnu_awt_xlib_la_LDFLAGS): Likewise.
(lib_gnu_awt_xlib_la_LINK): Likewise.
(install-exec-hook): Removed.
(lib-gnu-awt-xlib.la): Renamed.
From-SVN: r62201
2003-01-31 21:47:16 +00:00
Tom Tromey
60c7f4ef5e
aclocal.m4, [...]: Rebuilt.
...
* aclocal.m4, configure, include/config.h.in: Rebuilt.
* acinclude.m4 (CHECK_FOR_BROKEN_MINGW_LD): Resurrected; was in
aclocal.m4 and lost in some merge.
From-SVN: r62188
2003-01-31 17:59:00 +00:00
Tom Tromey
5aac1dac62
Window.java (Window(Window,GraphicsConfiguration)): Don't try to find graphics configuration.
...
* java/awt/Window.java (Window(Window,GraphicsConfiguration)):
Don't try to find graphics configuration.
* java/awt/Toolkit.java (default_toolkit_name): Use new
Configuration entry.
* gnu/classpath/Configuration.java.in (default_awt_peer_toolkit):
New global.
* configure: Rebuilt.
* configure.in (TOOLKIT): New subst.
(--enable-java-awt) [xlib, gtk]: Set TOOLKIT if required.
Do AWT tests much earlier. Run Gtk tests. Make jniinclude
directory. Make output directories for .c files.
* Makefile.in: Rebuilt.
* Makefile.am (lib_gnu_java_awt_peer_gtk_la_SOURCES): New macro.
(toolexeclib_LTLIBRARIES): Added cond_gtk_ltlibrary.
(all_java_source_files): Added new sources.
($(lib_gnu_java_awt_peer_gtk_la_OBJECTS)): New target.
(gtk_c_files): New macro.
(gtk_c_source_files): New macro.
(cond_gtk_ltlibrary): New macro.
($(gtk_c_files)): New target.
(lib_gnu_java_awt_peer_gtk_la_LIBADD): New macro.
(gtk_awt_peer_sources): New macro.
(gtk_c_headers): New macro.
($(gtk_c_headers)): New target.
(ACLOCAL_AMFLAGS): New macro.
* gtk.m4, glib.m4, libart.m4: New files.
* gnu/java/awt/peer/gtk/GdkFontMetrics.java,
gnu/java/awt/peer/gtk/GdkGraphics.java,
gnu/java/awt/peer/gtk/GtkArg.java,
gnu/java/awt/peer/gtk/GtkArgList.java,
gnu/java/awt/peer/gtk/GtkButtonPeer.java,
gnu/java/awt/peer/gtk/GtkCanvasPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxGroupPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxMenuItemPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
gnu/java/awt/peer/gtk/GtkChoicePeer.java,
gnu/java/awt/peer/gtk/GtkClipboard.java,
gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkDialogPeer.java,
gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
gnu/java/awt/peer/gtk/GtkFontPeer.java,
gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu/java/awt/peer/gtk/GtkGenericPeer.java,
gnu/java/awt/peer/gtk/GtkImage.java,
gnu/java/awt/peer/gtk/GtkImagePainter.java,
gnu/java/awt/peer/gtk/GtkLabelPeer.java,
gnu/java/awt/peer/gtk/GtkListPeer.java,
gnu/java/awt/peer/gtk/GtkMainThread.java,
gnu/java/awt/peer/gtk/GtkMenuBarPeer.java,
gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java,
gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
gnu/java/awt/peer/gtk/GtkMenuPeer.java,
gnu/java/awt/peer/gtk/GtkOffScreenImage.java,
gnu/java/awt/peer/gtk/GtkPanelPeer.java,
gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java,
gnu/java/awt/peer/gtk/GtkScrollbarPeer.java,
gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
gnu/java/awt/peer/gtk/GtkTextComponentPeer.java,
gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
gnu/java/awt/peer/gtk/GtkToolkit.java,
gnu/java/awt/peer/gtk/GtkWindowPeer.java,
gnu/java/awt/peer/gtk/TestAWT.java,
gnu/java/awt/peer/gtk/Test.java: New files from Classpath.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
jni/gtk-peer/gthread-jni.c, jni/gtk-peer/gthread-jni.h,
jni/gtk-peer/gtkpeer.h, jni/classpath/jcl.c, jni/classpath/jcl.h,
jni/classpath/jnilink.c, jni/classpath/jnilink.h,
jni/classpath/native_state.c, jni/classpath/native_state.h,
jni/classpath/primlib.c, jni/classpath/primlib.h: Likewise.
From-SVN: r62187
2003-01-31 17:54:14 +00:00
Julian Dolby
371ac72558
Properties.java (load): Ignore backslash before EOF.
...
2003-01-31 Julian Dolby <dolby@us.ibm.com>
* java/util/Properties.java (load): Ignore backslash before EOF.
From-SVN: r62186
2003-01-31 17:00:01 +00:00
Jeff Sturm
ae724017fd
natClass.cc (initializeClass): Check tables when (state == JV_STATE_IN_PROGRESS).
...
* java/lang/natClass.cc (initializeClass): Check tables when
(state == JV_STATE_IN_PROGRESS).
(_Jv_GetInterfaces): Use _Jv_WaitForState to link interface.
* java/lang/natClassLoader.cc (_Jv_WaitForState): Handle
interpreted classes.
(linkClass0): Use _Jv_WaitForState.
From-SVN: r62161
2003-01-30 23:20:45 +00:00
Oscar Pearce
757e166288
Component.java (processPaintEvent): Dispose of Graphics object when finished.
...
2003-01-28 Oscar Pearce <oscar@pearceenterprises.com>
* java/awt/Component.java (processPaintEvent): Dispose of Graphics
object when finished.
From-SVN: r62052
2003-01-28 23:49:46 +00:00
Andreas Tobler
e9e93c8b7c
* libjava/configure.host: Disable can_unwind_signal on darwin.
...
From-SVN: r62048
2003-01-28 23:25:39 +00:00
Ranjit Mathew
65b8e87409
re PR java/9254 (java::lang::Object::wait(), threads-win32.cc returns wrong return codes)
...
2003-01-28 Ranjit Mathew <rmathew@hotmail.com>
Fixes PR java/9254:
* include/win32-threads.h (_Jv_Mutex_t): Convert to a struct
additionally containing id of the owner thread as well as
the number of nested times the thread has acquired the mutex.
(_Jv_MutexInit): Initialise owner thread id and refcount to 0.
(_Jv_MutexDestroy): Reset owner thread id and refcount to 0.
(_Jv_MutexUnlock): Check if really the owner thread, reset
owner thread id to 0 before leaving, if leaving for the last
time.
(_Jv_MutexLock): Set owner thread id in the mutex and increment
refcount.
(_Jv_ThreadYield): Yield using a call to Sleep(0).
* win32-threads.cc (_Jv_CondWait): Check if really owner of
the passed mutex.
Pass handle of the broadcast event, instead of a pointer to it
in Win32 ResetEvent( ) call.
Remove incorrect return values.
(_Jv_CondDestroy): Close both event handles and delete
critical section.
(_Jv_CondNotify): Check if really the owner thread.
(_Jv_CondNotifyAll): Check if really the owner thread.
(_Jv_InitThreads): Change daemon_cond to a manual-reset event.
(really_start): Use SetEvent( ) to signal daemon_cond.
(_Jv_ThreadWait): Remove SignalObjectAndWait( ) and use
WaitForSingleObject( ) instead to wait for daemon_cond to be
signalled.
From-SVN: r62033
2003-01-28 22:23:36 +00:00
Ranjit Mathew
e4261ef72c
configure.in: Specifically define HAVE_BACKTRACE if building for MinGW.
...
2003-01-27 Ranjit Mathew <rmathew@hotmail.com>
* configure.in: Specifically define HAVE_BACKTRACE if building
for MinGW.
* include/win32.h: Remove HAVE_BACKTRACE definition.
* gnu/gcj/runtime/natStackTrace.cc: Include platform.h.
* configure: Rebuilt.
From-SVN: r62000
2003-01-28 19:10:00 +00:00
Alexandre Oliva
dbf45a0147
configure.in (toolexecdir, [...]): Set and AC_SUBST.
...
* configure.in (toolexecdir, toolexecmainlibdir, toolexeclibdir):
Set and AC_SUBST. Remove USE_LIBDIR conditional.
* Makefile.am (toolexecdir, toolexeclibdir): Don't override.
(toolexecmainlib_DATA): Renamed from toolexeclib_DATA.
* Makefile.in, configure: Rebuilt.
From-SVN: r61931
2003-01-28 01:44:58 +00:00
Ranjit Mathew
0ced43354f
re PR java/9253 (on win32, java.io.File.listFiles("C:\\") returns pwd instead of the root content of C:)
...
2003-01-24 Ranjit Mathew <rmathew@hotmail.com>
Fixes PR java/9253:
* java/io/natFileWin32.cc (performList): Append only "*.*"
if the canonical file path already has a "\" at the end.
From-SVN: r61736
2003-01-24 21:57:00 +00:00
Tom Tromey
4c98b1b078
defineclass.cc (handleMethodsEnd): Precompute code for static method.
...
* defineclass.cc (handleMethodsEnd): Precompute code for static
method.
(handleCodeAttribute): Likewise.
* resolve.cc (ncode): Use run_class for unsynchronized static
methods.
* include/java-interp.h (class _Jv_InterpMethod): Declare
run_class.
* interpret.cc (run_synch_class): Initialize class.
(run) [insn_invokestatic]: Don't initialize class.
[insn_anewarray]: Likewise.
[insn_multianewarray]: Likewise.
(run_class): New function.
From-SVN: r61727
2003-01-24 19:58:21 +00:00
Tom Tromey
d291503a67
ClassLoader.java (findLoadedClass): Removed erroneous comment.
...
* java/lang/ClassLoader.java (findLoadedClass): Removed erroneous
comment.
From-SVN: r61725
2003-01-24 19:37:17 +00:00
Andrew Haley
f8061f6ab4
x86_64-signal.h: Add simple handler for x86_64 32-bit mode.
...
2003-01-22 Andrew Haley <aph@redhat.com>
* x86_64-signal.h: Add simple handler for x86_64 32-bit mode.
* configure.host (CHECKREFSPEC): Define for x86_64.
From-SVN: r61600
2003-01-22 17:47:04 +00:00
Tom Tromey
570168b2b3
natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3.
...
* java/util/natResourceBundle.cc (getCallingClassLoader): Start
search at 2, not 3.
From-SVN: r61574
2003-01-21 21:16:46 +00:00
Vladimir Puskas
691255fb2a
natFileWin32.cc (isAbsolute): Check path length before looking at any characters.
...
2003-01-21 Vladimir Puskas <vpuskas@eunet.yu>
* java/io/natFileWin32.cc (isAbsolute): Check path length before
looking at any characters.
* java/io/natFilePosix.cc (_stat): Only compute `buf' if it will
be used.
(isAbsolute): Check path's length as well.
From-SVN: r61566
2003-01-21 20:45:57 +00:00
Mark Wielaard
827452ae5c
Makefile.am (core_java_source_files): Add VMObjectStreamClass.java.
...
* Makefile.am (core_java_source_files): Add VMObjectStreamClass.java.
(nat_source_files): Add natVMObjectStreamClass.cc.
* Makefile.in: Regenerated.
* gcj/javaprims.h (namespace java): Regenerated.
* java/io/ObjectStreamClass.java (getClassUID): Call
VMObjectStreamClass.hasClassInitializer().
(hasClassInitializer): Removed.
* java/io/VMObjectStreamClass.java: New class.
* java/io/natVMObjectStreamClass.cc: New file.
* java/lang/Class.h: Make java::io::VMObjectStreamClass friend class.
From-SVN: r61501
2003-01-20 06:46:28 +00:00
Mark Wielaard
3afcbc9b34
SocketImpl.java (toString): Don't explicitly call toString() on possible null address.
...
* java/net/SocketImpl.java (toString): Don't explicitly call
toString() on possible null address.
From-SVN: r61404
2003-01-16 21:37:56 +00:00
Michael Koch
676f46d083
2003-01-16 Michael Koch <konqueror@gmx.de>
...
* java/net/MulticastSocket.java
(setInterface): Reindented.
From-SVN: r61379
2003-01-16 08:01:27 +00:00
Scott Gilbertson
f826d5952c
natGC.cc (fillPolygon): New method.
...
2003-01-15 Scott Gilbertson <scottg@mantatest.com>
* gnu/gcj/xlib/natGC.cc (fillPolygon): New method.
* gnu/gcj/xlib/GC.java (fillPolygon): Declare.
* gnu/awt/xlib/XGraphics.java (fillPolygon): Added translateX and
translateY arguments. Implement.
* gnu/awt/j2d/IntegerGraphicsState.java (fillPolygon): Pass
down translation arguments.
(drawPolyline, drawPolygon): Fix incorrect tests.
* gnu/awt/j2d/DirectRasterGraphics.java (fillPolygon): Added
translateX and translateY arguments.
From-SVN: r61369
2003-01-15 23:53:49 +00:00
Scott Gilbertson
2af84af57b
Makefile.in: Rebuilt.
...
2003-01-15 Scott Gilbertson <scottg@mantatest.com>
* Makefile.in: Rebuilt.
* Makefile.am (xlib_includes): New macro.
(INCLUDES): Use it.
From-SVN: r61366
2003-01-15 23:34:14 +00:00
Scott Gilbertson
7a968a5782
XToolkit.java (getColorModel): Implemented.
...
2003-01-15 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XToolkit.java (getColorModel): Implemented.
* gnu/awt/xlib/XGraphicsConfiguration.java (getPixel): Work with
16-bit display mode.
From-SVN: r61362
2003-01-15 23:18:58 +00:00
Scott Gilbertson
09d096a8d7
CardLayout.java (show): Rewrote.
...
2003-01-15 Scott Gilbertson <scottg@mantatest.com>
* java/awt/CardLayout.java (show): Rewrote.
(gotoComponent): Removed `target' argument. Simplified code.
Don't pre-compute `choice' unless `what' is FIRST or LAST.
Changed all callers.
(NONE): Removed.
From-SVN: r61357
2003-01-15 22:47:04 +00:00
Michael Koch
8cb5ee7192
2003-01-14 Michael Koch <konqueror@gmx.de>
...
* java/net/InetSocketAddress.java
(serialVersionUID): New member variable.
* java/net/NetPermission.java
(NetPermission): Dont implement java.io.Serialization directly.
* java/net/SocketAddress.java:
(serialVersionUID): Documentation added.
From-SVN: r61305
2003-01-14 21:44:48 +00:00
Michael Koch
7365ecf789
2003-01-14 Michael Koch <konqueror@gmx.de>
...
* java/awt/Label.java
(Label): Implements javax.accessibility.Accessible;
* java/awt/List.java
(List): Implements javax.accessibility.Accessible;
* java/awt/ScrollPane.java
(ScrollPane): Implements javax.accessibility.Accessible;
* java/awt/Scrollbar.java
(Scrollbar): Implements javax.accessibility.Accessible;
* java/awt/TextComponent.java
(setCaretPosition): Throw exception, documentation added.
* java/awt/Toolkit.java:
Added some newlines in method documentations.
(createButton): Exception documentation added.
(createTextField): Exception documentation added.
(createLabel): Exception documentation added.
(createList): Exception documentation added.
(createCheckbox): Exception documentation added.
(createScrollbar): Exception documentation added.
(createScrollPane): Exception documentation added.
(createTextArea): Exception documentation added.
(createChoice): Exception documentation added.
(createFrame): Exception documentation added.
(createWindow): Exception documentation added.
(createDialog): Exception documentation added.
(createMenuBar): Exception documentation added.
(createMenu): Exception documentation added.
(createMenuItem): Exception documentation added.
(createFileDialog): Exception documentation added.
(createCheckboxMenuItem): Exception documentation added.
(loadSystemColors): Exception documentation added.
(setDynamicLayout): Exception documentation added.
(isDynamicLayoutSet): Exception documentation added.
(isDynamicLayoutActive): Exception documentation added.
(getScreenSize): Exception documentation added.
(getScreenResolution): Exception documentation added.
(getScreenInsets): Exception documentation added.
(getColorModel): Exception documentation added.
(getSystemClipboard): Exception documentation added.
(getSystemSelection): Exception documentation added.
(getMenuShortcutKeyMask): Exception documentation added.
(getSystemEventQueue): Exception documentation added.
* java/awt/Window.java:
Reindented some code.
(Window): Centralized implementation, documentation added.
(finalize): Documentation added.
(hide): Fixed typo in comment.
(getWindowListeners): Documentation added.
* java/awt/color/ColorSpace.java
(toRGB): Documentation added.
* java/awt/color/ICC_ColorSpace.java
(ICC_ColorSpace): Documentation added.
(toRGB): Throw exception, documentation added.
(fromRGB): Throw exception, documentation added.
(toCIEXYZ): Documentation added.
(fromCIEXYZ): Documentation added.
(getMinValue): Documentation added.
(getMaxValue): Documentation added.
* java/awt/geom/Dimension2D.java
(clone): Documentation added.
* java/awt/geom/GeneralPath.java
(clone): Documentation added.
* java/awt/geom/Line2D.java
(clone): Documentation added.
* java/awt/geom/QuadCurve2D.java
(clone): Documentation added.
* java/awt/image/ColorModel.java
(ColorModel): Throw exception, documentation added.
* java/awt/image/ImageFilter.java
(clone): Doesnt throw CloneNotSupportedException.
From-SVN: r61303
2003-01-14 21:21:35 +00:00
Andrew Haley
4cf0d20fce
natRuntime.cc (_load): StackTrace access needs to be in a try block.
...
2003-01-14 Andrew Haley <aph@redhat.com>
* java/lang/natRuntime.cc (_load): StackTrace access needs to be
in a try block.
From-SVN: r61293
2003-01-14 19:26:21 +00:00
Andrew Haley
399df6db87
dwarf2-signal.h: Remove x86_64.
...
2003-01-10 Andrew Haley <aph@redhat.com>
* include/dwarf2-signal.h: Remove x86_64.
* configure.host (x86_64 DIVIDESPEC): Remove.
* include/x86_64-signal.h: New file.
* configure.in: Regenerate.
From-SVN: r61284
2003-01-14 13:51:15 +00:00
Michael Koch
927818a598
2003-01-10 Michael Koch <konqueror@gmx.de>
...
* java/net/DatagramSocket.java
(ch): Description added.
(remotePort): Initialize with -1.
(connect): Doesnt throws SocketException.
* java/net/MulticastSocket.java
(setInterface): Merge with Classpath.
* java/net/ServerSocket.java
(closed): New member variable.
(bind): Check if socket is closed.
(close): Close an associated channel too, set new value to closed.
(isBound): Reindented.
(isClosed): Implemented.
* java/net/Socket.java
(closed): New member variable.
(bind): Check if socket is closed.
(connect): Check if socket is closed.
(close): Close an associated channel too, set new value to closed.
(isClosed): Implemented.
From-SVN: r61185
2003-01-11 01:17:19 +00:00
Michael Koch
b1771c6ac2
2003-01-10 Michael Koch <konqueror@gmx.de>
...
* java/awt/DisplayMode.java
(equals): Fixed argument type and implementation.
From-SVN: r61184
2003-01-11 00:51:29 +00:00
Tom Tromey
6ec628973a
posix.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION.
...
* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
JV_HASH_SYNCHRONIZATION.
* include/win32.h (_Jv_platform_usleep): Wrap in ifdef
JV_HASH_SYNCHRONIZATION.
From-SVN: r60998
2003-01-07 16:50:08 +00:00
Michael Koch
f2741d5fbb
DatagramSocket.java: Added classpath license info.
...
2003-01-07 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java:
Added classpath license info.
(DatagramSocket): Merged description with classpath.
(close): Merged description with classpath.
(getChannel): Merged description with classpath.
(getInetAddress): Merged description with classpath.
(getPort): Merged description with classpath.
(getLocalAddress): Merged description with classpath.
(getLocalPort): Merged description with classpath.
(getSoTimeout): Merged description with classpath.
(setSoTimeout): Merged description with classpath.
(getSendBufferSize): Merged description with classpath.
(setSendBufferSize): Merged description with classpath.
(getReceiveBufferSize): Merged description with classpath.
(setReceiveBufferSize): Merged description with classpath.
From-SVN: r60989
2003-01-07 08:26:02 +00:00
Tom Tromey
3128dd5cbd
* java/awt/List.java: Merged with Classpath.
...
From-SVN: r60896
2003-01-05 01:18:21 +00:00
Mark Wielaard
1d5c46dc84
FileDescriptor.java (position): New private field.
...
* java/io/FileDescriptor.java (position): New private field.
* java/io/natFileDescriptorPosix.cc (write): Up position.
(setLength): Use and set position.
(seek): Set position.
(getFilePointer): Return position.
(read): Up position.
From-SVN: r60869
2003-01-04 03:53:00 +00:00
Mark Wielaard
3aa0cc4e82
Merge with Classpath:
...
* java/io/ObjectStreamClass.java (lookup): Split method and call
lookupForClassObject().
(lookupForClassObject): New method.
(isProxyClass): New field.
(setClass): Set isProxyClass, add object to classLookupTable, set
superClass and calculateOffsets.
(ObjectStreamClass): Set isProxyClass. Only set uid when Serializable
and not a proxy class.
(setFields): Set accessible true for serialPersistentFields.
(getClassUID): Same for suid. And check if suid is of type long.
(hasClassInitializer): Don't throw NoSuchMethodError.
From-SVN: r60867
2003-01-04 03:44:07 +00:00
Mark Wielaard
2d2d0877ca
FileInputStream.java (finalize): Don't explicitly finalize FileDescriptor.
...
* java/io/FileInputStream.java (finalize): Don't explicitly
finalize FileDescriptor.
From-SVN: r60863
2003-01-04 00:08:11 +00:00
Jeff Sturm
2eb1ea8323
* configure.host (sparc*-*): Enable bytecode interpreter.
...
From-SVN: r60862
2003-01-03 23:36:42 +00:00
Dhek Bhun Kho
5e694fba05
UnicastServerRef.java (unexportObject): Don't throw RemoteException.
...
2003-01-03 Dhek Bhun Kho <bhun@chello.nl>
* gnu/java/rmi/server/UnicastServerRef.java (unexportObject):
Don't throw RemoteException.
* java/rmi/server/UnicastRemoteObject.java (unexportObject): Don't
throw RemoteException.
From-SVN: r60854
2003-01-03 22:57:25 +00:00
Joerg Brunsmann
9c91c80bb7
Connection.java (proxyPort, [...]): New static fields.
...
2003-01-03 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
* gnu/gcj/protocol/http/Connection.java (proxyPort, proxyInUse,
proxyHost): New static fields.
(<clinit>): Initialize new fields.
(connect): Use proxy if necessary.
(usingProxy): Implement.
From-SVN: r60846
2003-01-03 18:05:00 +00:00
Eric Blake
29456fb870
TreeMap.java (fabricateTree): Fix off-by-one error.
...
2003-01-03 Eric Blake <ebb9@email.byu.edu>
* java/util/TreeMap.java (fabricateTree): Fix off-by-one error.
(TreeIterator.remove): Prefer IllegalStateException over
ConcurrentModificationException, to match Sun.
From-SVN: r60837
2003-01-03 17:00:03 +00:00
Anthony Green
7125beea7a
boehm.cc (_Jv_MarkObj): Mark the protectionDomain of a class.
...
2002-12-22 Anthony Green <green@redhat.com>
* boehm.cc (_Jv_MarkObj): Mark the protectionDomain of a class.
From-SVN: r60834
2003-01-03 16:34:37 +00:00
Mark Wielaard
3e0cb4ff7c
HttpURLConnection.java (HTTP_NOT_IMPLEMENTED): Must be public.
...
* java/net/HttpURLConnection.java (HTTP_NOT_IMPLEMENTED): Must be
public.
(HTTP_USE_PROXY): Add field.
(getResponseVals): Only set responseCode when not yet explicitly
set by subclass.
From-SVN: r60809
2003-01-03 00:49:31 +00:00
Artur Biesiadowski
1a82c94bde
ZipFile.java (entries): Now HashMap.
...
* java/util/zip/ZipFile.java (entries): Now HashMap.
(readLeShort(DataInput, byte[])): Read from given byte array.
(readLeInt(DataInput, byte[]): Likewise.
(readLeShort(byte[] b, int off)): New method.
(readLeInt(byte[] b, int off)): Likewise.
(readEntries): Use byte arrays to read info in bigger chunks.
(getEntries): Return HashMap.
(getEntry): Use HashMap.
(locBuf): New private field.
(checkLocalHeader): Use locBuf to read info in one chunk.
(getInputStream): Use entries HashMap, wrap PartialInputStream
in BufferedInputStream.
(ZipEntryEnumeration): Use HashMap and Interator.
Co-Authored-By: Mark Wielaard <mark@klomp.org>
From-SVN: r60803
2003-01-02 21:01:24 +00:00
Mark Wielaard
27c687cc5b
URLClassLoader.java (Resource.getCodeSource): Fix check certs == null.
...
* java/net/URLClassLoader.java (Resource.getCodeSource):
Fix check certs == null.
(getCanonicalFileURL): Removed method.
(JarURLLoader): Don't call removed method.
(FileURLLoader): Likewise.
(FileURLLoader.getResource): Don't canonicalize file name.
Co-Authored-By: Jeroen Frijters <jeroen@sumatra.nl>
From-SVN: r60780
2003-01-02 09:34:34 +00:00
Tom Tromey
62d2eed656
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (rmi_java_source_files): Added RMIClassLoaderSpi.
* java/awt/AlphaComposite.java, java/awt/BasicStroke.java,
java/awt/BufferCapabilities.java, java/awt/Button.java,
java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
java/awt/Container.java, java/awt/Cursor.java,
java/awt/EventQueue.java, java/awt/FileDialog.java,
java/awt/Graphics2D.java, java/awt/Label.java, java/awt/Menu.java,
java/awt/MenuBar.java, java/awt/MenuComponent.java,
java/awt/PopupMenu.java, java/awt/ScrollPane.java,
java/awt/Scrollbar.java, java/awt/TextArea.java,
java/awt/TextField.java, java/awt/color/CMMException.java,
java/awt/color/ColorSpace.java, java/awt/color/ICC_Profile.java,
java/awt/color/ProfileDataException.java,
java/awt/datatransfer/Clipboard.java,
java/awt/datatransfer/DataFlavor.java,
java/awt/datatransfer/FlavorMap.java,
java/awt/datatransfer/SystemFlavorMap.java,
java/awt/dnd/DragGestureEvent.java,
java/awt/dnd/DragGestureRecognizer.java,
java/awt/dnd/DragSource.java, java/awt/dnd/DropTarget.java,
java/awt/event/WindowEvent.java, java/awt/geom/PathIterator.java,
java/awt/im/InputMethodHighlight.java,
java/io/PipedOutputStream.java, java/io/PipedWriter.java,
java/rmi/server/RMIClassLoader.java: Merged from Classpath.
* gnu/awt/j2d/Graphics2DImpl.java (drawImage): Changed type of
`op' to BufferedImageOp.
From-SVN: r60768
2003-01-02 00:14:24 +00:00
Tom Tromey
9f17a7afd2
re PR libgcj/7416 (java.security startup refs "GNU libgcj.security")
...
Fix for PR libgcj/7416:
* javax/naming/InitialContext.java (init): Use
gnu.classpath.home.url.
* java/security/Security.java: Use new properties.
(loadProviders): Accept base url; use it.
* java/lang/System.java: Document gnu.classpath.vm.shortname, and
gnu.classpath.home.url.
(gnu.classpath.home.url): Define.
(gnu.classpath.vm.shortname): Likewise.
From-SVN: r60722
2002-12-31 22:50:10 +00:00
Tom Tromey
35a94bdca8
re PR libgcj/8997 (spin() calls Thread.sleep)
...
2002-12-31 Tom Tromey <tromey@redhat.com>
Ranjit Mathew <rmathew@hotmail.com>
Fix for PR libgcj/8997:
* java/lang/natObject.cc (spin): Use _Jv_platform_usleep.
Include platform.h.
* include/posix.h (_Jv_platform_usleep): New function.
* include/win32.h (_Jv_platform_usleep): New function.
Co-Authored-By: Ranjit Mathew <rmathew@hotmail.com>
From-SVN: r60700
2002-12-31 17:43:47 +00:00
Tom Tromey
9f1cf235ef
javaprims.h: Updated.
...
* gcj/javaprims.h: Updated.
* scripts/classes.pl (scan): Removed stray semicolon.
From-SVN: r60659
2002-12-30 22:42:20 +00:00