summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
* 2003-08-26 Mark Wielaard <mark@klomp.org>tromey2003-08-264-41/+41
| | | | | | | | | | | | | | | * java/security/acl/Acl.java: Fix broken p tag. * java/text/DateFormatSymbols.java: Correctly open and close li tags. * javax/swing/border/LineBorder.java: Close img tag alt attributes. * javax/swing/plaf/TreeUI.java: Likewise. * javax/swing/plaf/basic/BasicTreeUI.java: Likewise. * java/util/Properties.java: Use the word umlaut, not &auml; in api documentation. * java/util/PropertyResourceBundle.java: Likewise and add closing code tag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70825 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/ref/Reference.java (get): Indentation fix.tromey2003-08-261-8/+8
| | | | | | | | | | (clear): Comment fix. (enqueue): Likewise. (lock): Likewise. (referent): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70814 138bc75d-0d04-0410-961f-82ee72b054a4
* PR java/12058:tromey2003-08-261-1/+1
| | | | | | | * java/lang/reflect/natArray.cc (set): Allow null as argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70813 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/Proxy.java (ProxyData): `pack' now a String.tromey2003-08-261-6/+21
| | | | | | | | | (ProxyData.getPackage): New method. (ProxyData.getProxyData): Use package name, not Package. (ClassFactory.ClassFactory): Updated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70809 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: added gnu/awt/xlib/XOffScreenImage.java.sgilbertson2003-08-251-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: re-generated. * gnu/awt/j2d/IntegerGraphicsState.java (ScreenCoupledImage): new interface. (drawImage): detect ScreenCoupledImage instances. * gnu/awt/xlib/XCanvasPeer.java (createImage) implemented. * gnu/awt/xlib/XEventLoop.java (createEvent): re-formatted, and rearranged to avoid null pointer. * gnu/awt/xlib/XGraphics.java (drawImage): added XOffScreenImage handling. * gnu/awt/xlib/XOffScreenImage.java: new file. * gnu/gcj/xlib/Drawable.java (getDepth): new native method. * gnu/gcj/xlib/GC.java (copyArea): new native method. * gnu/gcj/xlib/XAnyEvent.java (TYPE_KEY_PRESS): new constant. (TYPE_KEY_RELEASE): new constant. (TYPE_MOTION_NOTIFY): new constant. (TYPE_ENTER_NOTIFY): new constant. (TYPE_LEAVE_NOTIFY): new constant. (TYPE_FOCUS_IN): new constant. (TYPE_FOCUS_OUT): new constant. (TYPE_KEYMAP_NOTIFY): new constant. (TYPE_GRAPHICS_EXPOSE): new constant. (TYPE_NO_EXPOSE): new constant. (TYPE_VISIBILITY_NOTIFY): new constant. (TYPE_CREATE_NOTIFY): new constant. (TYPE_DESTROY_NOTIFY): new constant. (TYPE_MAP_REQUEST): new constant. (TYPE_CONFIGURE_REQUEST): new constant. (TYPE_GRAVITY_NOTIFY): new constant. (TYPE_RESIZE_REQUEST): new constant. (TYPE_CIRCULATE_NOTIFY): new constant. (TYPE_CIRCULATE_REQUEST): new constant. (TYPE_PROPERTY_NOTIFY): new constant. (TYPE_SELECTION_CLEAR): new constant. (TYPE_SELECTION_REQUEST): new constant. (TYPE_SELECTION_NOTIFY): new constant. (TYPE_COLORMAP_NOTIFY): new constant. (TYPE_MAPPING_NOTIFY): new constant. * gnu/gcj/xlib/natDrawable.cc (getDepth): new method. * gnu/gcj/xlib/natGC.cc (copyArea): new method * java/awt/Component.java (createImage): changed to use peer method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70776 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-21 David Daney <ddaney@avtrex.com>tromey2003-08-212-9/+16
| | | | | | | | | | | | Fix for PR libgcj/12013: * java/lang/ref/natReference.cc (finalize_referred_to_object): Check `cleared' field. * java/lang/ref/Reference.java (copy): Updated comments. (cleared): New field. (clear): Rewrote. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70668 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-21 Scott Gilbertson <scottg@mantatest.com>fitzsim2003-08-212-3/+2
| | | | | | | | | | | | | | | | | Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (gtk_awt_peer_sources): Add gnu/java/awt/peer/GLightweightPeer.java. Remove gnu/java/awt/GLightweightPeer.java. * gnu/java/awt/GLightweightPeer.java: Remove file. * gnu/java/awt/peer/GLightweightPeer.java: New file. * java/awt/Component.java (getToolkit): Add comment about lightweight components. * java/awt/Toolkit.java (createComponent): Return gnu.java.awt.peer.GLightweightPeer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70657 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/ref/natReference.cc (finalize_referred_to_object):tromey2003-08-201-3/+14
| | | | | | | | | | | | Set `list->reference' to DELETED_REFERENCE when removing dead object. (find_slot): Added an assert. (DELETED_REFERENCE): New define. (add_to_hash): Check for DELETED_REFERENCE. (remove_from_hash): Just return if found slot isn't ours. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70599 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/11575membar2003-08-191-8/+13
| | | | | | | | | * java/io/natFileDescriptorWin32.cc (open): Set create flag to OPEN_AWAYS when READ & WRITE regardless of APPEND flag. Honor EXCL when openning with WRITE flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70565 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/11951:tromey2003-08-181-29/+50
| | | | | | | | | | | | | | | | | | * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Returns void. Throw VirtualMachineError if ffi fails. Initialize return value. Added is_jni_call argument; only wrap exception if not a JNI call. Use descriptive message if operation not supported. (_Jv_GetTypesFromSignature): Use declaring class' loader to find array class. * include/jvm.h (_Jv_CallAnyMethodA): Updated declaration. * jni.cc (_Jv_JNI_CallAnyMethodV): Updated for new form of _Jv_CallAnyMethodA. (_Jv_JNI_CallAnyMethodA): Likewise. (_Jv_JNI_CallAnyVoidMethodV): Likewise. (_Jv_JNI_CallAnyVoidMethodA): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70544 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-12 Graydon Hoare <graydon@redhat.com>graydon2003-08-131-5/+779
| | | | | | | | * java/awt/Font.java: Stub out more recent API. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70404 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-12 Graydon Hoare <graydon@redhat.com>graydon2003-08-131-1/+1
| | | | | | | | * java/awt/Color.java (getAlpha): Prevent sign-extended alpha values. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70401 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-10 Jeroen Frijters <jeroen@frijters.net>fitzsim2003-08-121-10/+10
| | | | | | | | | | | * java/awt/Container.java (getPreferredSize): Call preferredSize. (preferredSize): Moved body of getPreferredSize here. (getMinimumSize): Call minimumSize. (minimumSize): Moved body of getMinimumSize here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70386 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/EventQueue.java (currentEvent, lastWhen): New fields.tromey2003-08-111-5/+42
| | | | | | | | | | | | (postEvent): Removed FIXME comment. (isDispatchThread): Documented. (getCurrentEvent): New method. (dispatchEvent): Set currentEvent and lastWhen. (getMostRecentEventTime): Rewrote. (invokeLater): Documented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70333 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/PrintStream.java (print): Always flush if auto_flush isbryce2003-08-101-17/+24
| | | | | | | | | | | set. Don't check for newline characters. (write (int)): Implement without using a temporary array. (write (byte[], int, int): Always flush if auto_flush is set. Don't check for newline characters. Fixes PR libgcj/11778. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70284 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-08 Andrew Haley <aph@redhat.com>aph2003-08-082-2/+5
| | | | | | | | | | | | | | * Makefile.am (AM_CXXFLAGS): Define BOOT_CLASS_PATH. * Makefile.in: Rebuild. * java/lang/natRuntime.cc (insertSystemProperties): Add "sun.boot.class.path". 2003-08-07 Andrew Haley <aph@redhat.com> * java/io/PrintStream.java: Don't crash on a null string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70250 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/Socket.java (Socket (SocketImpl)): Don't allow nullbryce2003-08-072-134/+20
| | | | | | | | | | | | | | SocketImpl. Update Javadoc. (bind): Call close() not impl.close() in event of exception. (connect): Likewise. Remove superfluous null checks throughout. * java/net/ServerSocket.java (ServerSocket (int, int, InetAddress)): Don't create an extra socket. Fix for PR libgcj/10868. (bind): Clean up exception handling. Remove superfluous null checks throughout. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70219 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/natPlainSocketImplPosix.cc (connect): Pass the FD as abryce2003-08-071-15/+16
| | | | | | | | | | | ready-to-write argument to _Jv_Select. Reset the socket back to non-blocking state after connecting. (accept): Pass the FD as a ready-to-write argument to _Jv_Select. Throw SocketTimeoutException not InterruptedIOException. (read): Throw SocketTimeoutException not InterruptedIOException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70217 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Thread.java (Thread): Check for null "name" frombryce2003-08-071-9/+4
| | | | | | | | start of private constructor, not after calling the private constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70216 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FilePermission.java (equals): Use correct index fortromey2003-08-061-3/+5
| | | | | | | last character of path. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70206 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/11779:tromey2003-08-051-5/+6
| | | | | | | | * java/lang/reflect/natField.cc (getAddr): Skip frames in Field class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70185 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/Method.java: Updated status comment.tromey2003-08-052-115/+349
| | | | | | | | | | Imported javadoc from Classpath and re-ordered methods. * java/lang/reflect/Constructor.java: Reindented. Updated status comment. Imported javadoc from Classpath and re-ordered methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70184 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-05 Thomas Fitzsimmons <fitzsim@redhat.com>fitzsim2003-08-051-35/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkComponentPeer.java (postKeyEvent): Add keyLocation parameter. * java/awt/event/KeyEvent.java (getKeyText): Fix "NumPad-" string. (paramString): Generate keyChar string according to keyChar, not keyCode. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (state_to_awt_mods): Handle ALT key. (keyevent_state_to_awt_mods): New function. (get_first_keyval_from_keymap): New function. (keysym_to_awt_keycode): Get virtual key code from keymap. Handle missing VK_ values. (keysym_to_awt_keylocation): New function. (keyevent_to_awt_keychar): New function. (generates_key_typed_event): Handle non-text-component case. Handle GDK_KP_Delete and GDK_KP_Enter. (awt_event_handler): Call new functions to get postKeyEvent parameters. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (gtkInit): Update postKeyEvent method signature. * jni/gtk-peer/gtkpeer.h: Add KEY_LOCATION defines. Add missing VK_ defines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70178 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-04 David P Grove <groved@us.ibm.com>tromey2003-08-041-4/+6
| | | | | | | | | * java/text/DecimalFormat.java (format): avoid ArithmeticException when groupingSize is 0. (parse): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70156 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-02 Michael Koch <konqueror@gmx.de>mkoch2003-08-024-138/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/nio/ByteBufferImpl.java (getChar): Check remaining bytes, fixed comment about endianess. (putChar): Likewise. (getShort): Likewise. (putShort): Likewise. (getInt): Check remaining bytes, fixed conversion, fixed comment about endianess. (putInt): Likewise. (getLong): Likewise. (putLong): Likewise. (getFloat): Likewise. (putFloat): Likewise. (getDouble): Likewise. (putDouble): Likewise. * java/nio/DirectByteBufferImpl.java (getChar): Wrapped code, fixed comment about endianess. (putchar): Likewise. (getShort): Likewise. (putShort): Likewise. (getInt): Fixed conversion, fixed comment about endianess. (putInt): Likewise. (getLong): Likewise. (putLong): Likewise. (getFloat): Likewise. (putFloat): Likewise. (getDouble): Likewise. (putDouble): Likewise. * java/nio/MappedByteBufferImpl.java (compact): Implemented. (getChar): Implemented. (putChar): Implemented. (getDouble): Implemented. (putdouble): Implemented. (getFloat): Implemented. (putFloat): Implemented. (getInt): Implemented. (putInt): Implemented. (getLong): Implemented. (putLong): Implemented. (getShort): Implemented. (putShort): Implemented. * java/nio/channels/FileChannelImpl.java (read): Set position where to access file. (write): Likewise. (transferTo): Flip buffer after read and before write. (transferFrom): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70102 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-02 Michael Koch <konqueror@gmx.de>mkoch2003-08-021-9/+34
| | | | | | | | | | | | | | | | * java/net/URL.java (URL): Added paragraph about the gnu.java.net.nocache_protocol_handlers property. (ph_cache): Renamed from handlers to match classpath's implementation. Reordered it with factory and serialVersionUID member variables. (cache_handlers): New member variable. (static): New static initializer to initialize cache_handlers from gnu.java.net.nocache_protocol_handlers property. (URL): Use ph_cache instead of handlers, reformatted some code to match classpath's implementation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70098 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/11241:tromey2003-08-011-1/+3
| | | | | | | | * java/util/WeakHashMap.java (WeakHashMap(int,float)): If initialCapacity is 0, set it to 1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70070 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-01 Stephen Crawley <crawley@dstc.edu.au>mkoch2003-08-011-1/+2
| | | | | | | | * java/net/SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70069 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-01 Jerry Quinn <jlquinn@optonline.net>mark2003-08-011-35/+38
| | | | | | | | | | | Mark Wielaard <mark@klomp.org> * java/math/BigDecimal (divide): Correctly handle ROUND_HALF_EVEN when amount is greater than 0.5. Simplify and optimize code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70049 138bc75d-0d04-0410-961f-82ee72b054a4
* More for PR libgcj/11737:tromey2003-08-012-23/+42
| | | | | | | | | | | | | | | | | | * java/io/ObjectInputStream.java (processResolution): Use getMethod. (getMethod): Make method accessible. (getField): Make field accessible. (setBooleanField): Don't call setAccessible here. (setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField): Likewise. (callReadMethod): Don't check whether method is null. Catch NoSuchMethodException. * java/io/ObjectOutputStream.java (callWriteMethod): Initialize cause on thrown exceptions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70038 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-31 Stepan Koltsov <yozh@mx1.ru>tromey2003-08-011-1/+2
| | | | | | | Fix for PR libgcj/11728: git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70037 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/11737:tromey2003-08-011-13/+41
| | | | | | | | | | | | | * java/io/ObjectOutputStream.java (getMethod): Make method accessible. (getField): Likewise. (writeObject): Use getMethod. Import PrivilegedAction and AccessController. (callWriteMethod): Don't check whether m is null. Catch NoSuchMethodException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70035 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/geom/Arc2D.java (getBounds2D): Implement.tromey2003-07-311-22/+63
| | | | | | | | | | (containsAngle): Likewise. (getStartPoint): Rewrote. (getEndPoint): Likewise. (setAngleStart(Point2D)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70002 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natString.cc (init(gnu.gcj.runtime.StringBuffer)):tromey2003-07-282-1/+9
| | | | | | | | | | | New method. Include gnu/gcj/runtime/StringBuffer.h. * java/lang/String.java (init(gnu.gcj.runtime.StringBuffer)): New native method. (String(gnu.gcj.runtime.StringBuffer)): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69890 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-27 Michael Koch <konqueror@gmx.de>mkoch2003-07-271-14/+0
| | | | | | | | | * java/awt/Window.java (Window): Removed now unused constructor. It became oboslete with the new embedded window patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69860 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-26 Ranjit Mathew <rmathew@hotmail.com>tromey2003-07-272-3/+9
| | | | | | | | | | | * java/lang/Win32Process.java (ConcreteProcess): Surround a command line element with quotes if it contains an embedded space or tab. * java/lang/natWin32Process.cc (startProcess): Do not surround command line elements with quotes here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69844 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/natFileDescriptorPosix.cc (write): Try again on EINTR.tromey2003-07-261-23/+37
| | | | | | | | | (write): Likewise. (read): Likewise. (read): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69807 138bc75d-0d04-0410-961f-82ee72b054a4
* + * java/lang/natRuntime.cc (_load): Add library name tomark2003-07-251-1/+2
| | | | | | | + UnsatisfiedLinkError when thrown. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69786 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-25 Mark Wielaard <mark@klomp.org>mark2003-07-256-73/+725
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java added. * Makefile.in: Likewise. 2003-07-25 Jeroen Frijters <jeroen@frijters.net> * java/awt/Component.java (getPreferredSize): Call preferredSize. (preferredSize): Moved body of getPreferredSize here. (getMinimumSize): Call minimumSize. (minimumSize): Moved body of getMinimumSize here. (prepareImage): Fall back on Toolkit.prepareImage if there is no peer (checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but pass -1 * java/awt/Container.java (validate): Don't validate if there is no peer. (update): Clear background before calling paint. * java/awt/GridBagLayout.java Completed the implementation and fixed several bugs. * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Fixed typo. & instead of | was used to combine flags. * java/awt/Window.java (Window): Don't call setVisible(false). Windows are invisible by default and calling virtual methods from constructor causes compatibility problems (e.g. subclasses may assume that the peer already exists). 2003-07-25 Michael Koch <konqueror@gmx.de> * java/awt/GridBagLayout.java: Totally reworked and partly implemented. * java/awt/GridBagLayoutInfo.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-24 H. V�is�nen <hvaisane@joyx.joensuu.fi>tromey2003-07-241-4/+8
| | | | | | | | * java/text/SimpleDateFormat.java (format) [YEAR_FIELD]: Zero pad unless field size is 2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69744 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (arraycopy): Check for overflow.tromey2003-07-231-2/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69706 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Window.java (getWarningString): Just return thetromey2003-07-231-17/+5
| | | | | | | | string. (Window): Set warningString; check with security manager. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69699 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/URLEncoder.java (encode(String)): Use platform defaulttromey2003-07-221-7/+20
| | | | | | | | | | encoding. (encode(String,String)): Convert to 2-digit upper-case hex number. (hex): New field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69678 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Runtime.java: Comment fix.tromey2003-07-2110-126/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/ClassLoader.java (isAncestorOf): New method. (getParent): Uncommented security check. Use isAncestorOf. * include/jvm.h (_Jv_CheckAccess): Declare. * java/lang/reflect/natConstructor.cc (newInstance): Perform access check. Include IllegalAccessException.h, ArrayIndexOutOfBoundsException.h. * java/lang/reflect/natArray.cc (newInstance): Pass caller's class loader to _Jv_GetArrayClass. Include ArrayIndexOutOfBoundsException.h. * java/lang/reflect/Field.java: Update comment to reflect status. (equals): Fixed indentation. * java/lang/Class.h (Class): Declare memberAccessCheck, not checkMemberAccess. Make _Jv_CheckAccess a friend. * java/lang/Class.java (memberAccessCheck): New method from Classpath. (checkMemberAccess): Removed. (getDeclaredMethod): Use memberAccessCheck. (getField): Likewise. (getMethod): Likewise. * resolve.cc (_Jv_ResolvePoolEntry): Use _Jv_CheckAccess. (_Jv_SearchMethodInClass): Likewise. * prims.cc (_Jv_CheckAccess): New function. * jni.cc (_Jv_JNI_FindClass): Use getClassLoaderInternal. (_Jv_JNI_GetAnyFieldID): Likewise. * java/lang/natClass.cc (forName): Use getClassLoaderInternal. (getClassLoader): Added security check. (getConstructor): Call memberAccessCheck. (getDeclaredClasses): Likewise. (getDeclaredField): Likewise. (getDeclaredFields): Likewise. (_getConstructors): Likewise. (getDeclaredConstructor): Likewise. (getDeclaredMethods): Likewise. (getFields): Likewise. (getMethods): Likewise. (newInstance): Likewise. (_Jv_MakeVTable): Put method name in exception. * java/lang/reflect/natMethod.cc (getType): Use getClassLoaderInternal. (_Jv_GetTypesFromSignature): Likewise. (invoke): Perform access check. (_Jv_CallAnyMethodA): Removed old FIXME comments. Include ArrayIndexOutOfBoundsException.h. * java/lang/reflect/natField.cc (getType): Use getClassLoaderInternal. (_Jv_CheckFieldAccessibility): Removed. (getAddr): Use _Jv_CheckAccess; find caller. Include ArrayIndexOutOfBoundsException.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69621 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-20 Michael Koch <konqueror@gmx.de>mkoch2003-07-201-4/+12
| | | | | | | | | | * java/net/URL.java (URL): Fixed documentation to name an argument correcty, Reformatted one method declaration. (getURLStreamHandler): Added documentation from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69606 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-19 Jeroen Frijters <jeroen@sumatra.nl>mkoch2003-07-191-1/+9
| | | | | | | | | | * java/net/URLClassLoader.java (addURL): Moved implementation to private addURLImpl() to avoid calling addURL from the constructor. (addURLImpl): Contains the code that was previously in addURL. (addURLs): Call addURLImpl(), not addURL(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69591 138bc75d-0d04-0410-961f-82ee72b054a4
* [ ChangeLog ]graydon2003-07-184-52/+60
| | | | | | | | | | | | | | 2003-07-18 Graydon Hoare <graydon@redhat.com> * java/awt/geom/CubicCurve2D.java, java/awt/geom/Line2D.java, java/awt/geom/QuadCurve2D.java, java/awt/geom/Rectangle2D.java: Fix path some calculations, make path iterators follow a consistent style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69567 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-18 Mark Wielaard <mark@klomp.org>mkoch2003-07-181-1/+1
| | | | | | | | * java/util/logging/Handler.java (isLoggable): Check record level smaller or equal. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69563 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-14 Michael Koch <konqueror@gmx.de>mkoch2003-07-143-6/+15
| | | | | | | | | | | | | | | | | | | * java/awt/image/MemoryImageSource.java, java/beans/PropertyEditorManager.java, javax/naming/CompoundName.java, javax/naming/spi/NamingManager.java, javax/swing/AbstractButton.java, javax/swing/ButtonModel.java, javax/swing/SwingUtilities.java, javax/swing/UIManager.java, javax/swing/colorchooser/DefaultColorSelectionModel.java, javax/swing/event/AncestorEvent.java, javax/swing/event/InternalFrameEvent.java, java/util/zip/ZipFile.java: New versions from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69321 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-13 Michael Koch <konqueror@gmx.de>mkoch2003-07-136-4/+490
| | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/nio/FileChannelImpl.java, gnu/java/nio/natFileChannelImpl.cc: Removed. * java/io/FileInputStream.java, java/io/FileOutputStream.java, java/io/RandomAccessFile.java, java/nio/MappedByteBufferImpl.java: Import java.nio.channels.FileChannelImpl instead of gnu.java.nio.FileChannelImpl. * java/nio/channels/FileChannelImpl.java, java/nio/channels/natFileChannelImpl.cc: New files. * Makefile.am (ordinary_java_source_files): Removed gnu/java/nio/FileChannelImpl.java and added java/nio/channels/FileChannelImpl.java. (nat source_files): Removed gnu/java/nio/natFileChannelImpl.cc and added java/nio/channels/natFileChannelImpl.cc. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69296 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud