aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-01-28configure.in (toolexecdir, [...]): Set and AC_SUBST.Alexandre Oliva5-345/+389
* 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* libjava.lang/pr8823.xfail: New file, add "xfail-byte".Kaveh R. Ghazi2-0/+5
From-SVN: r61917
2003-01-24re PR java/9253 (on win32, java.io.File.listFiles("C:\\") returns pwd ↵Ranjit Mathew2-2/+10
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-24defineclass.cc (handleMethodsEnd): Precompute code for static method.Tom Tromey5-21/+73
* 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-24ClassLoader.java (findLoadedClass): Removed erroneous comment.Tom Tromey2-3/+7
* java/lang/ClassLoader.java (findLoadedClass): Removed erroneous comment. From-SVN: r61725
2003-01-24calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method ↵Ranjit Mathew13-13/+31
attributes. 2003-01-24 Ranjit Mathew <rmathew@hotmail.com> * libjava.jni/calls.c (Java_calls_docall): Define with JNIEXPORT and JNICALL method attributes. * libjava.jni/field.c (Java_field_fetch): Likewise. * libjava.jni/final_method.c (Java_final_1method_meth): Likewise. * libjava.jni/findclass.c (Java_findclass_doit): Likewise. * libjava.jni/invoke.c (Java_invoke_val): Likewise. * libjava.jni/martin.c (Java_martin_myNative): Likewise. * libjava.jni/noclass.c (Java_noclass_find_1it): Likewise. * libjava.jni/overload.c (Java_overload_over__I): Likewise. (Java_overload_over__II): Likewise. * libjava.jni/register.c (JNI_OnLoad): Likewise. * libjava.jni/simple_int.c (Java_simple_1int_nat): Likewise. * libjava.jni/throwit.c (Java_throwit_throwit): Likewise. * libjava.jni/virtual.c (Java_virtual_equals): Likewise. From-SVN: r61720
2003-01-22Fix misapplied patch.Andrew Haley1-1/+1
From-SVN: r61601
2003-01-22x86_64-signal.h: Add simple handler for x86_64 32-bit mode.Andrew Haley3-1/+20
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-21natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3.Tom Tromey2-2/+10
* java/util/natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3. From-SVN: r61574
2003-01-21natFileWin32.cc (isAbsolute): Check path length before looking at any ↵Vladimir Puskas3-8/+17
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-21jacks.xfail: All 8.4.3 tests and 9.4-modifier-10 now pass.Tom Tromey2-5/+5
* libjava.jacks/jacks.xfail: All 8.4.3 tests and 9.4-modifier-10 now pass. From-SVN: r61557
2003-01-20Makefile.am (core_java_source_files): Add VMObjectStreamClass.java.Mark Wielaard8-33/+102
* 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-16SocketImpl.java (toString): Don't explicitly call toString() on possible ↵Mark Wielaard2-2/+8
null address. * java/net/SocketImpl.java (toString): Don't explicitly call toString() on possible null address. From-SVN: r61404
2003-01-162003-01-16 Michael Koch <konqueror@gmx.de>Michael Koch2-5/+10
* java/net/MulticastSocket.java (setInterface): Reindented. From-SVN: r61379
2003-01-15natGC.cc (fillPolygon): New method.Scott Gilbertson6-19/+52
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-15Makefile.in: Rebuilt.Scott Gilbertson3-3/+13
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-15XToolkit.java (getColorModel): Implemented.Scott Gilbertson3-12/+35
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-15CardLayout.java (show): Rewrote.Scott Gilbertson2-21/+34
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-142003-01-14 Michael Koch <konqueror@gmx.de>Michael Koch4-1/+17
* 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-142003-01-14 Michael Koch <konqueror@gmx.de>Michael Koch16-33/+317
* 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-14natRuntime.cc (_load): StackTrace access needs to be in a try block.Andrew Haley2-8/+21
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-14dwarf2-signal.h: Remove x86_64.Andrew Haley1-3/+0
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: r61285
2003-01-14dwarf2-signal.h: Remove x86_64.Andrew Haley5-262/+374
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-13re PR libgcj/9139 (mauve tests require installation)Tom Tromey3-20/+27
Fix for PR libgcj/9139: * lib/libjava.exp (find_javac): Put value of libgcj_jar into return value when gcj is used. * libjava.mauve/mauve.exp (test_mauve): Use libgcj_jar global. From-SVN: r61237
2003-01-112003-01-10 Michael Koch <konqueror@gmx.de>Michael Koch5-13/+70
* 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-112003-01-10 Michael Koch <konqueror@gmx.de>Michael Koch2-8/+13
* java/awt/DisplayMode.java (equals): Fixed argument type and implementation. From-SVN: r61184
2003-01-07posix.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION.Tom Tromey3-1/+12
* 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-07DatagramSocket.java: Added classpath license info.Michael Koch2-267/+344
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-05* java/awt/List.java: Merged with Classpath.Tom Tromey2-0/+13
From-SVN: r60896
2003-01-04FileDescriptor.java (position): New private field.Mark Wielaard3-21/+42
* 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-04Merge with Classpath:Mark Wielaard2-43/+82
* 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-04FileInputStream.java (finalize): Don't explicitly finalize FileDescriptor.Mark Wielaard2-3/+8
* java/io/FileInputStream.java (finalize): Don't explicitly finalize FileDescriptor. From-SVN: r60863
2003-01-03* configure.host (sparc*-*): Enable bytecode interpreter.Jeff Sturm2-1/+6
From-SVN: r60862
2003-01-03* libjava.compile/pr8712.java: New file, for PR java/8712.Tom Tromey2-0/+11
From-SVN: r60856
2003-01-03UnicastServerRef.java (unexportObject): Don't throw RemoteException.Dhek Bhun Kho3-4/+11
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-03Connection.java (proxyPort, [...]): New static fields.Joerg Brunsmann2-12/+55
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-03TreeMap.java (fabricateTree): Fix off-by-one error.Eric Blake2-3/+9
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-03boehm.cc (_Jv_MarkObj): Mark the protectionDomain of a class.Anthony Green2-1/+7
2002-12-22 Anthony Green <green@redhat.com> * boehm.cc (_Jv_MarkObj): Mark the protectionDomain of a class. From-SVN: r60834
2003-01-03HttpURLConnection.java (HTTP_NOT_IMPLEMENTED): Must be public.Mark Wielaard2-24/+42
* 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-02ZipFile.java (entries): Now HashMap.Artur Biesiadowski2-64/+130
* 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-02URLClassLoader.java (Resource.getCodeSource): Fix check certs == null.Mark Wielaard2-28/+15
* 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-02Makefile.in: Rebuilt.Tom Tromey43-422/+914
* 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* libjava.compile/pr8955.java: New test, for PR java/8955.Tom Tromey2-0/+17
From-SVN: r60764
2002-12-31re PR libgcj/7416 (java.security startup refs "GNU libgcj.security")Tom Tromey4-27/+61
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-31re PR libgcj/8997 (spin() calls Thread.sleep)Tom Tromey4-2/+32
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-30javaprims.h: Updated.Tom Tromey3-8/+21
* gcj/javaprims.h: Updated. * scripts/classes.pl (scan): Removed stray semicolon. From-SVN: r60659
2002-12-30URLStreamHandler.java (toExternalForm): Ignore port if zero or smaller.Mark Wielaard2-1/+6
* java/net/URLStreamHandler.java (toExternalForm): Ignore port if zero or smaller. From-SVN: r60657
2002-12-30Properties (formatForOutput): Don't fall through to default case after ↵Mark Wielaard2-0/+6
escaping character. * java/util/Properties (formatForOutput): Don't fall through to default case after escaping character. From-SVN: r60618
2002-12-30StringBuffer.java (getChars): Remove wrong dstOffset check against count.Mark Wielaard2-19/+25
* java/lang/StringBuffer.java (getChars): Remove wrong dstOffset check against count. From-SVN: r60616
2002-12-28boehm.cc: Remove stray semicolon.Mark Mitchell11-54/+80
* boehm.cc: Remove stray semicolon. * interpret.cc: Likewise. * prims.cc: Likewise. * verify.cc (_Jv_BytecodeVerifier::verify_fail): Move definition earlier to ensure default arguments are processed. * gcj/array.h (JArray): Add forward declaration. (elements): Likewise. * gcj/javaprim.h: Remove stray semicolons. * include/bohm-gc.h: Likewise. * include/jni.h: Likewise. * include/jvm.h: Likewise. * java/lang/Class.h (_Jv_GetArrayClass): Declare _Jv_NewArrayClass. From-SVN: r60556