aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2005-04-22jni.cc (natrehash): Don't bother clearing memory again.Anthony Green1-2/+0
2005-04-22 Anthony Green <green@redhat.com> * jni.cc (natrehash): Don't bother clearing memory again. * interpret.cc (do_allocate_static_fields): Ditto. * java/lang/natString.cc (rehash): Ditto. From-SVN: r98583
2005-04-22LogManager.java: Reformatted.Sven de Marothy1-238/+212
2005-04-22 Sven de Marothy <sven@physto.se> * java/util/logging/LogManager.java: Reformatted. (readConfiguration): If a logger for a key is not found, create one. From-SVN: r98543
2005-04-22Naming.java: Added class documentation.Andrew John Hughes1-36/+98
2005-04-22 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/rmi/Naming.java: Added class documentation. (lookup(String)): Call parseURL and getName. (bind(String,java.rmi.Remote)): Likewise. (unbind(String)): Likewise. (rebind(String, java.rmi.Remote)): Likewise. (list(String)): Call parseURL. (parseURL(String)): New method to handle parsing and defaults. (getName(java.net.URL)): New method to handle finding the service name. From-SVN: r98542
2005-04-22* java/lang/natClass.cc (initializeClass): Link class.Tom Tromey1-1/+14
From-SVN: r98540
2005-04-21AssertionError.java: Typo fix.Tom Tromey1-1/+1
2005-04-21 Tom Tromey <tromey@redhat.com> * java/lang/AssertionError.java: Typo fix. From-SVN: r98523
2005-04-21VMClassLoader.java (transformException): Removed.Tom Tromey2-34/+4
* java/lang/VMClassLoader.java (transformException): Removed. (resolveClass): No longer native. Now does nothing. * java/lang/natVMClassLoader.cc (resolveClass): Removed. From-SVN: r98516
2005-04-20[multiple changes]Michael Koch1-14/+73
2005-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/net/URI.java: Added class documentation. (parseURI(String)): Only handle scheme-specific parts if URI is not opaque. Allow for parts that can't be null. (toString()): Output the scheme-specific part whole, rather than as its possibly non-existent components. 2005-04-20 Jeroen Frijters <jeroen@frijters.net> * java/net/URI.java (AUTHORITY_REGEXP): Corrected regexp. (AUTHORITY_USERINFO_GROUP,AUTHORITY_HOST_GROUP,AUTHORITY_PORT_GROUP): Adjusted to match new regexp. From-SVN: r98451
2005-04-20[multiple changes]Michael Koch2-90/+30
2005-04-20 Chris Burdess <dog@gnu.org> * java/io/DataOutputStream.java (writeUTF): Use block write for output. 2005-04-20 Jeroen Frijters <jeroen@frijters.net> * java/io/DataInputStream.java (ignoreInitialNewline): Removed (readLine): Changed newline handling. From-SVN: r98449
2005-04-20PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): ↵Jeroen Frijters1-1/+1
Fixed byte to int conversion. 2005-04-20 Jeroen Frijters <jeroen@frijters.net> * java/awt/image/PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): Fixed byte to int conversion. From-SVN: r98448
2005-04-202005-04-20 Michael Koch <konqueror@gmx.de>Michael Koch1-8/+11
* java/io/FilePermission.java (serialVersionUID): Made private. (ALL_FILES): New constant. (implies): Handle '<<ALL FILES>>' case. From-SVN: r98447
2005-04-20[multiple changes]Michael Koch2-21/+95
2005-04-20 Sven de Marothy <sven@physto.se> * java/nio/ByteBufferImpl.java: (putChar): Inlined for speed. (put, get): Bulk methods can use arraycopy. * java/nio/CharBufferImpl.java: (put, get): Bulk methods can use arraycopy. 2005-04-20 Jeroen Frijters <jeroen@frijters.net> * java/nio/ByteBufferImpl.java (get(), put(byte)): Inlined checks and field updates. * java/nio/CharBufferImpl.java (CharBufferImpl(CharBufferImpl)): Copy array_offset field. (get(), put(char)): Inlined checks and field updates. Fixed to take array_offset into account. (get(int), put(int, char)): Fixed to take array_offset into account. From-SVN: r98445
2005-04-202005-04-20 Sven de Marothy <sven@physto.se>Sven de Marothy1-1/+1
* java/text/SimpleDateFormat.java: (formatWithAttribute): Pad year before truncating digits. From-SVN: r98444
2005-04-202005-04-20 Michael Koch <konqueror@gmx.de>Michael Koch1-0/+4
* java/net/URLConnection.java (getContent): Fixed javadoc comment. From-SVN: r98438
2005-04-202005-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes1-0/+17
* java/net/URL.java: (toURI()): Implemented. From-SVN: r98437
2005-04-192005-04-19 Michael Koch <konqueror@gmx.de>Michael Koch2-8/+26
* java/net/InetAddress.java (InetAddress): Fixed javadoc comment. (aton): Likewise. (lookup): Added javadoc. (getFamily): Likewise. * java/net/ServerSocket.java (getChannel): Improved javadoc comment. From-SVN: r98419
2005-04-19RemoteObject.java: Removed unused import statement.Michael Koch1-2/+1
2005-04-19 Michael Koch <konqueror@gmx.de> * java/rmi/server/RemoteObject.java: Removed unused import statement. From-SVN: r98400
2005-04-19URL.java: Formatting cleanups.Michael Koch1-2/+6
2005-04-19 Michael Koch <konqueror@gmx.de> * java/net/URL.java: Formatting cleanups. From-SVN: r98399
2005-04-19FontMetrics.java: Reformatted.Michael Koch1-369/+331
2005-04-19 Michael Koch <konqueror@gmx.de> * java/awt/FontMetrics.java: Reformatted. (getFontRenderContext): Handle case when java.awt.Graphics context is given. 2005-04-19 Michael Koch <konqueror@gmx.de> * java/awt/FontMetrics.java (getStringBounds): New methods. From-SVN: r98398
2005-04-19natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH ↵Mark Wielaard1-2/+9
only when not empty. * java/lang/natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH only when not empty. Fall back to default path "." when java.class.path is empty. From-SVN: r98394
2005-04-19QuadCurve2D.java: Fixed Brian Gough's name for real.Michael Koch1-2/+2
2005-04-19 Michael Koch <konqueror@gmx.de> * java/awt/geom/QuadCurve2D.java: Fixed Brian Gough's name for real. From-SVN: r98392
2005-04-19natVMClassLoader.cc (loadClass): Call resolveClass, not _Jv_InitClass.Tom Tromey1-1/+1
* java/lang/natVMClassLoader.cc (loadClass): Call resolveClass, not _Jv_InitClass. From-SVN: r98388
2005-04-192005-04-19 Michael Koch <konqueror@gmx.de>Michael Koch2-40/+59
* gnu/java/awt/peer/gtk/GdkGraphics.java (getClipBounds): Handle clip being null. (setClip): Likewise. * java/beans/beancontext/BeanContextSupport.java (add): Implemented. (addAll): Likewise. (clear): Likewise. (removeAll): Likewise. (retainAll): Likewise. 2005-04-19 Michael Koch <konqueror@gmx.de> * java/beans/beancontext/BeanContextServicesSupport.java (BeanContextServicesSupport): Reimplemented. (addBeanContextServicesListener): Implemented. (initialize): Likewise. (removeBeanContextServicesListener): Likewise. * java/beans/beancontext/BeanContextSupport.java (add): Likewise. (addBeanContextMembershipListener): Likewise. (getLocale): Likewise. (initialize): Likewise. (iterator): Likewise. (remove): Likewise. (toArray): Likewise. From-SVN: r98375
2005-04-19MediaTracker.java: Reindented tabs to spaces.Roman Kennke1-128/+392
2005-04-19 Roman Kennke <roman@kennke.org> * java/awt/MediaTracker.java: Reindented tabs to spaces. 2005-04-19 Roman Kennke <roman@kennke.org> * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Removed check for SOMEBITS, this confused the media tracker and lead to lockups. The LOADING bit is handled on other places. (addImage): Removed the 'start image tracking' stuff. This is not necessary and could confuse the media tracker. (checkAll): Improved the check for image status so that images that already complete images are detected. Also now are really all images checked and if necessary loaded. Before the method bailed out after the first incomplete image. (statusAll): Detect images that are complete after the call to Component.prepareImage(..). (checkID): The same as in checkAll. (statusID): The same as in statusAll. 2005-04-19 Roman Kennke <roman@kennke.org> * java/awt/MediaTracker.java (addImage): Synchronized list access. (waitForAll): Fixed comparison of time (changed < to >). (waitForID): Fixed comparison of time (changed < to >). (removeImage): Synchronized list access. 2005-04-19 Roman Kennke <roman@kennke.org> * java/awt/MediaTracker.java Added API documentation. 2005-04-19 Roman Kennke <roman@kennke.org> * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Fixed flags. The different flags must not be ORed together. (checkAll): Modified to handle different meaning of the flags. (waitForAll): Fixed so that it waits maximum the specified amount of milliseconds. (statusAll): Modified to handle different meaning of the flags. (waitForID): Fixed so that it waits maximum the specified amount of milliseconds. From-SVN: r98374
2005-04-19Font.java (decode): Handle null argument and allow space as delimiter.David Gilbert1-1/+8
2005-04-19 vid Gilbert <david.gilbert@object-refinery.com> * java/awt/Font.java (decode): Handle null argument and allow space as delimiter. From-SVN: r98373
2005-04-19EventHandler.java: Reworked documentation.Robert Schuster1-160/+377
2005-04-19 Robert Schuster <thebohemian@gmx.net> * java/beans/EventHandler.java: Reworked documentation. (invoke): Fixed behavior to match spec. From-SVN: r98372
2005-04-192005-04-19 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+16
* java/awt/print/PrinterJob.java (pageDialog): New method. (printDialog): Implemented. From-SVN: r98371
2005-04-19ConvolveOp.java: Removed comment added by eclipse.Michael Koch1-7/+3
2005-04-19 Michael Koch <konqueror@gmx.de> * java/awt/image/ConvolveOp.java: Removed comment added by eclipse. From-SVN: r98370
2005-04-192005-04-19 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux1-1/+1
* java/awt/image/IndexColorModel.java (getRGB): Check if pixel is negative. From-SVN: r98369
2005-04-19RasterOp.java: Fixed wrong formatting.Michael Koch1-3/+4
2005-04-19 Michael Koch <konqueror@gmx.de> * java/awt/image/RasterOp.java: Fixed wrong formatting. From-SVN: r98368
2005-04-182005-04-18 Roman Kennke <roman@kennke.org>Roman Kennke1-0/+2
* java/awt/Compmonent.java (setComponentOrientation): Made this property firing a PropertyChangeEvent. From-SVN: r98349
2005-04-182005-04-18 Roman Kennke <roman@kennke.org>Roman Kennke1-1/+11
* java/awt/BorderLayout.java (calcSize): Check for overflow when component sizes are added. From-SVN: r98347
2005-04-18AWTEvent.java (toString): Added case for source not being an AWT component.Robert Schuster1-1/+4
2005-04-18 Robert Schuster <thebohemian@gmx.net> * java/awt/AWTEvent.java (toString): Added case for source not being an AWT component. From-SVN: r98346
2005-04-18CubicCurve2D.java, [...]: Fixed mentioning of Brian Gouph.Michael Koch2-2/+2
2005-04-18 Michael Koch <konqueror@gmx.de> * java/awt/geom/CubicCurve2D.java, java/awt/geom/QuadCurve2D.java: Fixed mentioning of Brian Gouph. From-SVN: r98340
2005-04-13natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH if ↵Mark Wielaard1-0/+12
not already set. * java/lang/natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH if not already set. From-SVN: r98099
2005-04-06bytearray.java: New file.Andrew Haley2-16/+37
2005-04-06 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/bytearray.java: New file. * testsuite/libjava.lang/bytearray.out: New file. * java/lang/ClassLoader.java (loadClassFromSig): Declare (loadClass): Use it. * java/lang/natClassLoader.cc (loadClassFromSig): New method. From-SVN: r97756
2005-04-06natLogger.cc (getCallerStackFrame): Don't crash on NULL klass and meth ↵Bryce McKinlay1-2/+8
values from _Jv_StackTrace::GetCallerInfo(). 2005-04-06 Bryce McKinlay <mckinlay@redhat.com> * java/util/logging/natLogger.cc (getCallerStackFrame): Don't crash on NULL klass and meth values from _Jv_StackTrace::GetCallerInfo(). From-SVN: r97739
2005-04-05re PR libgcj/20750 (libgcj needs a --with-java-home configure option)Thomas Fitzsimmons1-1/+1
2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com> * doc/install.texi (Configuration): Document --with-java-home. 2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/20750 * Makefile.am (AM_CXXFLAGS): Define JAVA_HOME. * Makefile.in: Regenerate. * configure.ac: Add --with-java-home option. * configure: Regenerate. * external/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. * java/lang/natRuntime.cc (insertSystemProperties): Set java.home to JAVA_HOME macro. From-SVN: r97671
2005-04-05jni.cc (_Jv_JNI_GetAnyFieldID): Throw ClassNotFoundException.Tom Tromey3-42/+31
* jni.cc (_Jv_JNI_GetAnyFieldID): Throw ClassNotFoundException. * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Rewrote to use _Jv_FindClassFromSignature. * verify.cc (resolve): throw NoClassDefFoundError. * link.cc (resolve_field): Throw NoClassDefFoundError. (find_field): Likewise. * prims.cc (_Jv_FindClassFromSignature): Removed recursion. Handle error cases. Added 'endp' argument. * include/jvm.h (_Jv_FindClassFromSignature): Updated prototype. From-SVN: r97660
2005-04-04ClassLoader.java (loadClass): Resolve class even if it was already found.Tom Tromey1-16/+16
* java/lang/ClassLoader.java (loadClass): Resolve class even if it was already found. From-SVN: r97565
2005-04-04URL.java (DEFAULT_SEARCH_PATH): Added org.metastatic.jessie.Tom Tromey1-1/+1
* java/net/URL.java (DEFAULT_SEARCH_PATH): Added org.metastatic.jessie. From-SVN: r97560
2005-04-03re PR libgcj/20727 (double free or corruption)Anthony Green1-1/+1
2005-04-02 Anthony Green <green@redhat.com> PR libgcj/20727 * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug. From-SVN: r97479
2005-04-02re PR libgcj/20090 (gij should be implemented in Java)Thomas Fitzsimmons1-27/+3
2005-04-01 Thomas Fitzsimmons <fitzsim@redhat.com> * gcj.texi (Invoking gij): Add descriptions of new -X options. Mention recognized-and-ignored compatibility options. (Memory allocation): Add descriptions of JvMalloc, JvRealloc and JvFree. (About CNI): Add Memory allocation section. 2005-04-01 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/20090, PR libgcj/20526 * gij.cc (nonstandard_opts_help): New function. (add_option): New function. (main): Support java options. Set java.class.path. Don't set _Jv_Jar_Class_Path. * prims.cc (parse_x_arg): New function. (parse_init_args): Call parse_x_arg for -X and _ options, when ignoreUnrecognized is true. (new _Jv_RunMain): New vm_args variant. (old _Jv_RunMain): Call new vm_args _Jv_RunMain. (_Jv_Jar_Class_Path): Remove variable. * include/java-props.h: Likewise. * include/cni.h (JvRealloc): New function. * include/jvm.h (_Jv_RunMain): Declare vm_args variant. * java/lang/natRuntime.cc (insertSystemProperties): Remove _Jv_Jar_Class_Path logic. Use JV_VERSION and JV_API_VERSION macros. * configure.ac (JV_VERSION): Define. (JV_API_VERSION): Likewise. * configure: Regenerate. * include/config.h.in: Regenerate. From-SVN: r97429
2005-04-02natDouble.cc (parseDouble): Handle NaN, Infinity and -Infinity as parameters.Mark Anderson1-2/+17
2005-04-01 Mark Anderson <mark@panonet.net> * java/lang/natDouble.cc (parseDouble): Handle NaN, Infinity and -Infinity as parameters. From-SVN: r97424
2005-04-012005-04-01 Michael Koch <konqueror@gmx.de>Michael Koch1-12/+11
* java/io/PipedInputStream.java (read): Make sure a positive byte value is returned. Revised javadoc. Thanks to Olafur Bragason for reporting these bugs. From-SVN: r97416
2005-04-01natVMClassLoader.cc (getSystemClassLoaderInternal): Updated for name change.Tom Tromey3-6/+109
* java/lang/natVMClassLoader.cc (getSystemClassLoaderInternal): Updated for name change. (nativeFindClass): New method. (loadClass): Use nativeFindClass. * java/lang/natClassLoader.cc (_Jv_FindClass): Use single-argument form of loadClass. * java/lang/VMClassLoader.java (tried_libraries, lib_control, LIB_FULL, LIB_CACHE, LIB_NEVER): New fields from old VMClassLoader. (initialize): New method. (nativeFindClass): Declare. * gnu/gcj/runtime/natVMClassLoader.cc: Removed. * gnu/gcj/runtime/VMClassLoader.java: Removed. * gnu/gcj/runtime/ExtensionClassLoader.java: Renamed from VMClassLoader.java. (definePackageForNative): Removed. (tried_libraries, LIB_CACHE, LIB_FULL, LIB_NEVER, lib_control): Moved to VMClassLoader.java. * prims.cc (_Jv_CreateJavaVM): Updated for renaming. * Makefile.am (gnu/gcj/runtime/ExtensionClassLoader.h): Renamed. (ordinary_java_source_files): Added ExtensionClassLoader.java, removed VMClassLoader.java. (nat_source_files): Removed natVMClassLoader.cc. From-SVN: r97414
2005-04-012005-04-01 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters1-2/+3
* java/util/Timer.java (run): Stop the queue if a task throws an exception. From-SVN: r97411
2005-03-29natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs.Tom Tromey1-0/+5
libjava: * java/lang/natRuntime.cc (insertSystemProperties): Set gnu.gcj.runtime.endorsed.dirs. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added HelperClassLoader.java. (AM_CXXFLAGS): Define GCJ_ENDORSED_DIRS. * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Extends HelperClassLoader. (init): Use addDirectoriesFromProperty. * gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Extends HelperClassLoader. Use addDirectoriesFromProperty. Handle gnu.gcj.runtime.endorsed.dirs. * gnu/gcj/runtime/HelperClassLoader.java: New file. gcc/java: * gcj.texi (libgcj Runtime Properties): Document gnu.gcj.runtime.endorsed.dirs. From-SVN: r97207
2005-03-24Makefile.in: Rebuilt.Tom Tromey4-26/+67
* Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Define TOOLEXECLIBDIR. (libgcj0_convenience_la_SOURCES): Don't include gnu_xml_source_files. (libgcj0_convenience_la_LIBADD): New variable. (libgcj_la_LIBADD): Don't include sax or w3c_dom. (all_java_source_files): javax_imageio_source_files, javax_xml_source_files, and gnu_java_beans_source_files. ($(gnu_xml_source_files:.java=.lo)): Removed target. (gnu-xml.lo): New target. (javax-imageio.lo): Likewise. (javax-xml.lo): Likewise. (gnu-java-beans.lo): Likewise. (gnu_java_beans_source_files): New variable. (javax_imageio_source_files): Likewise. (javax_xml_source_files): Likewise. (javax_source_files): Moved files to other variable. (awt_java_source_files): Likewise. (ordinary_java_source_files): Added BootClassLoader.java. * java/lang/natVMClassLoader.cc (defineClass): Use boot loader, not system class loader. (initBootLoader): New method. (loadClass): Search bootLoader. * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use boot loader, not system class loader. (_Jv_UnregisterInitiatingLoader): Likewise. (_Jv_FindClass): Likewise. Ensure entries in bootstrap_class_list are unique. * java/lang/natClass.cc (getClassLoader): Don't special case system class loader. * java/lang/VMClassLoader.java (bootLoader): New field. (getResource): Use bootLoader. (getResources): Likewise. (initBootLoader): Declare. * gnu/gcj/runtime/BootClassLoader.java: New file. * external/sax/org/xml/sax/helpers/NamespaceSupport.java (EMPTY_ENUMERATION): Now package-private. * external/w3c_com/Makefile.in: Rebuilt. * external/w3c_com/Makefile.am (MULTIBUILDTOP): New variable. (w3c.jar): New target. (classes.stamp): Updated. (toolexeclib_LTLIBRARIES): Renamed from noinst_LTLIBRARIES. Changed name of library. (libw3c_gcj_la_SOURCES): New variable. (libw3c_gcj_la_GCJFLAGS): Likewise. (source_files): Renamed from lib3c_convenience_la_SOURCES. * external/sax/Makefile.in: Rebuilt. * external/sax/Makefile.am (MULTIBUILDTOP): New variable. (sax.jar): New target. (classes.stamp): Updated. (toolexeclib_LTLIBRARIES): Renamed from noinst_LTLIBRARIES. Changed name of library. (libsax_gcj_la_SOURCES): New variable. (libsax_gcj_la_GCJFLAGS): Likewise. (source_files): Renamed from libsax_convenience_la_SOURCES. * stacktrace.cc (non_system_trace_fn): Don't look at system class loader. * prims.cc (_Jv_CreateJavaVM): Initialize the bootstrap class loader. (_Jv_RunMain): Handle case where 'runtime' is NULL at exit. From-SVN: r96960
2005-03-23PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083,Sven de Marothy3-22/+41
2005-03-23 Sven de Marothy <sven@physto.se> PR libgcj/2641, PR libgcj/9854, PR libgcj/14892, PR libgcj/18083, PR libgcj/11085: * java/util/Calendar.java (set): Use starting day of week when one is needed if none is given. * java/text/SimpleDateFormat.java (parse): Handle 1-12 and 1-24 timestamps correctly. * java/util/GregorianCalendar.java (computeTime, computeFields): HOUR should be in 0-11 format. (nonLeniencyCheck): Adjust leniency checking to that fact. (getLinearDay): Should be private. From-SVN: r96951
2005-03-22posix.h: .dylib is used on all Apple MACH platforms.Mike Stump1-1/+1
* include/posix.h: .dylib is used on all Apple MACH platforms. * java/lang/ieeefp.h: ppc64 is also __IEEE_BIG_ENDIAN. From-SVN: r96889