Commit Graph

3119 Commits

Author SHA1 Message Date
Andrew Haley b08fd659ae Makefile.am (nat_files, [...]): New.
2004-10-15  Andrew Haley  <aph@redhat.com>

        * Makefile.am (nat_files, xlib_nat_files): New.
        * Makefile.in: Regenerate.

From-SVN: r89104
2004-10-15 17:01:19 +00:00
Ulrich Weigand ed67425158 jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of ffi_raw_call if FFI_NATIVE_RAW_API is not defined.
* jni.cc (_Jv_JNIMethod::call): Use ffi_java_raw_call instead of
	ffi_raw_call if FFI_NATIVE_RAW_API is not defined.

From-SVN: r89051
2004-10-14 20:36:37 +00:00
Andrew Haley 180a373d0d interpret.cc (_Jv_InterpMethod::run): Initialize _Jv_StartOfInterpreter.
2004-10-13  Andrew Haley  <aph@redhat.com>

        * interpret.cc (_Jv_InterpMethod::run): Initialize
        _Jv_StartOfInterpreter.
        (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
        (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
        * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
        _Unwind_FindEnclosingFunction to discover whether PC is within the
        interpreter.

From-SVN: r89037
2004-10-14 15:21:13 +00:00
Rutger Ovidius 2abb138b79 re PR libgcj/17903 (Incorrect SHA result)
2004-10-12  Rutger Ovidius  <ovidr@users.sourceforge.net>

	PR libgcj/17903:
	* testsuite/libjava.lang/md5test.java: New file.
	* testsuite/libjava.lang/md5test.out: Likewise.
	* testsuite/libjava.lang/shatest.java: Likewise.
	* testsuite/libjava.lang/shatest.out: Likewise.

From-SVN: r88922
2004-10-12 12:13:39 +02:00
Richard Henderson 169bb110d3 posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
* include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
        (_Jv_ThreadSelf): Use __builtin_thread_pointer.

From-SVN: r88894
2004-10-11 10:49:39 -07:00
Bryce McKinlay 0ba09d8fc6 Calendar.java (set): Invalidate DST_OFFSET field as a DST boundary may have been crossed.
2004-10-08  Bryce McKinlay  <mckinlay@redhat.com>

	* java/util/Calendar.java (set): Invalidate DST_OFFSET
	field as a DST boundary may have been crossed.
	* java/util/GregorianCalendar.java (add): Throw
	IllegalArgumentException on attempt to add to DST_OFFSET or
	ZONE_OFFSET fields. Update javadoc.

From-SVN: r88847
2004-10-10 17:19:37 +01:00
Michael Koch 0d2e6ffef6 2004-10-09 Michael Koch <konqueror@gmx.de>
* java/io/CharArrayWriter.java
	(resize): Removed redundant 'final' modifier.
	* java/io/DataInputStream.java
	(readFully): Throw IndexOutOfBoundsException of len < 0.
	* java/io/FileDescriptor.java,
	java/io/FileInputStream.java,
	java/io/FileOutputStream.java,
	java/io/ObjectOutputStream.java,
	java/io/ObjectStreamClass.java,
	java/io/PipedInputStream.java,
	java/io/RandomAccessFile.java:
	Reorganized import statements.

From-SVN: r88817
2004-10-09 10:22:25 +00:00
Michael Koch f507003ab2 RMIC.java, [...]: Reworked import statements and fixed file headers.
2004-10-09  Michael Koch  <konqueror@gmx.de>

	* gnu/java/rmi/rmic/RMIC.java,
	gnu/java/rmi/server/RMIHashes.java,
	gnu/java/rmi/server/RMIObjectInputStream.java,
	gnu/java/rmi/server/UnicastConnection.java,
	gnu/java/rmi/server/UnicastConnectionManager.java,
	gnu/java/rmi/server/UnicastRemoteCall.java,
	gnu/java/rmi/server/UnicastServerRef.java:
	Reworked import statements and fixed file headers.

From-SVN: r88816
2004-10-09 09:57:02 +00:00
Loren J. Rittle 56d6e6b113 configure.ac (*-*-freebsd[[1234]]*): Refine error message emission rule.
* configure.ac (*-*-freebsd[[1234]]*): Refine error message
	emission rule.
	* configure: Rebuilt.

From-SVN: r88533
2004-10-04 22:26:16 +00:00
Andreas Schwab acfeef9caa Fix typo.
From-SVN: r88392
2004-10-01 11:11:36 +00:00
Tom Tromey 02164889d5 2004-09-30 Tom Tromey <tromey@redhat.com>
i	* java/text/MessageFormat.java (Field): Constructor now
	protected.

From-SVN: r88346
2004-09-30 18:27:53 +00:00
Tom Tromey 26f7abae52 MacSpi.java: Fixed typo.
2004-09-30  Tom Tromey  <tromey@redhat.com>

	* javax/crypto/MacSpi.java: Fixed typo.

From-SVN: r88344
2004-09-30 18:21:42 +00:00
Michael Koch 0aa3602654 InetAddress.java: Reformatted.
2004-09-30  Michael Koch  <konqueror@gmx.de>

	* java/net/InetAddress.java: Reformatted.
	(loopback): Initialize with Inet4Address object.
	(static): Initialize ANY_IF with Inet4Address object.
	(InetAddress): Removed unused package-private constructor.

From-SVN: r88336
2004-09-30 15:22:08 +00:00
Michael Koch 57da15a410 Beans.java, [...]: Reordered import statements and removed redundant modifiers.
2004-09-30  Michael Koch  <konqueror@gmx.de>

	* java/beans/Beans.java,
	java/beans/EventHandler.java,
	java/beans/EventSetDescriptor.java,
	java/beans/Introspector.java,
	java/beans/PropertyEditorManager.java,
	java/beans/beancontext/BeanContext.java,
	java/beans/beancontext/BeanContextChild.java,
	java/beans/beancontext/BeanContextChildSupport.java,
	java/beans/beancontext/BeanContextMembershipEvent.java:
	Reordered import statements and removed redundant modifiers.

From-SVN: r88335
2004-09-30 14:54:13 +00:00
Tom Tromey 26aed92305 re PR libgcj/17715 (.properties files missing from libgcj-4.0.0.jar)
PR libgcj/17715:
	* Makefile.in: Rebuilt.
	* Makefile.am (libgcj-@gcc_version@.jar): Include properties
	files.
	(all_property_files): New macro.

From-SVN: r88300
2004-09-29 19:51:17 +00:00
Tom Tromey c8dc36d6bc Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Re-sorted.
	(libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.

From-SVN: r88294
2004-09-29 18:31:54 +00:00
Tom Tromey 252d78843b * jni.cc (_Jv_JNI_RegisterNatives): Formatting fixlets.
From-SVN: r88255
2004-09-28 21:55:26 +00:00
Tom Tromey bd1c8428dd re PR libgcj/17222 (libjava fails to build due to command line length during link)
PR libgcj/17222:
	* Makefile.am (libgcj.la): Restored.
	* Makefile.in: Rebuilt.

From-SVN: r88251
2004-09-28 20:37:40 +00:00
Michael Koch 95b88040e2 URLConnection.java: Reformatted.
2004-09-28  Michael Koch  <konqueror@gmx.de>

	* java/net/URLConnection.java: Reformatted.
	* java/net/URLClassLoader.java: Reformatted.
	(getContent): Reordered return of content.
	(getContentHandler): Don't check for null explicitely.

From-SVN: r88226
2004-09-28 11:02:35 +00:00
Michael Koch 2c11433f20 2004-09-27 Michael Koch <konqueror@gmx.de>
* java/io/BufferedInputStream.java
	(BufferedInputStream): Added Jeroen Frijters to authors.
	(count): Don't explicitely initialize with default value.
	(pos): Likewise.
	(marklimit): Likewise.
	(read): Changed boolean expression to match GNU classpath' version.
	(reset): Add proper message to exception.
	(skip): Check for closed stream.
	(refill): Likewise.

From-SVN: r88167
2004-09-27 09:27:28 +00:00
Per Bothner c5fe8107bc prims.cc (unblock_signal): Annotate signum with __unused__ to avoid warnings in the non-POSIX_VERSION case.
* prims.cc (unblock_signal): Annotate signum with __unused__ to
	avoid warnings in the non-POSIX_VERSION case.
	Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
	so place it inside an #if block.
	* include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
	* include/i386-signal.h (SIGNAL_HANDLER):  Likewise
	* include/mips-signal.h (SIGNAL_HANDLER):  Likewise
	* include/sparc-signal.h (SIGNAL_HANDLER):  Likewise

From-SVN: r88148
2004-09-26 13:38:49 -07:00
Per Bothner 08bc8777ef * prims.cc (process_gcj_properties): Optimization.
From-SVN: r88147
2004-09-26 13:24:32 -07:00
Per Bothner a22478ced1 Collections.java (sort): Copy from array in forwards order...
* java/util/Collections.java (sort):  Copy from array in forwards
	order, rather than reverse order which may be much less efficient.

From-SVN: r88146
2004-09-26 13:14:26 -07:00
Mark Wielaard 3bd2680ed5 System.java (properties): Make package private.
2004-09-26  Mark Wielaard  <mark@klomp.org>

       * java/lang/System.java (properties): Make package private.
       * java/lang/Throwable.java (StaticData.nl): Initialize through
       directly accessing System.properties.getProperty().

       * java/lang/Throwable.java (nl): Remove static field.
       (StaticData): New private static inner class.
       (stackTraceStringBuffer): Use StaticData.nl.

From-SVN: r88133
2004-09-26 17:11:14 +00:00
Casey Marshall 59c86e4b88 2004-09-26 Casey Marshall <csm@gnu.org>
* java/security/ProtectionDomain.java
       (<init>(CodeSource,PermissionCollection)): set `staticBinding' to
       `true'.

       * java/security/SecureClassLoader.java
       (defineClass): make protection domain dynamically bound.
       (getPermissions): call `getCurrentPolicy' to avoid permission
       check.

From-SVN: r88127
2004-09-26 14:47:41 +00:00
Mark Wielaard ffe2e220bd [multiple changes]
2004-09-25  Mark Wielaard  <mark@klomp.org>

        * Makefile.am (core_java_source_files): Add VMTimeZone.java.
        (nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
        * Makefile.in: Regenerated.

        * gcj/javaprims.h: Regenerated.

        * java/util/TimeZone.java (defaultZone): Use VMTimeZone.
        (getDefaultTimeZone): Make package private. Check that GMToffset
        contains at least one digit.
        (getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
        VMTimeZone.
        * util/VMTimeZone.java: New file with above methods.

        * java/util/natTimeZone.cc: Removed (renamed).
        * java/util/natVMTimeZone.cc: Added (renamed).

2004-09-25  Jeroen Frijters  <jeroen@frijters.net>

        * java/util/TimeZone.java
        (getDefaultTimeZone): Fixed test to distinguish between hours and
        minutes in specified timezone.

From-SVN: r88112
2004-09-25 22:21:51 +00:00
Jeroen Frijters 9b2b6c0f33 Proxy.java (getPackage, [...]): Fixed handling of default package.
2004-09-25  Jeroen Frijters  <jeroen@frijters.net>

       * java/lang/reflect/Proxy.java (getPackage, ClassFactory): Fixed
       handling of default package. (generate): Removed confused comments
       and code about making Method and Field accessible.

From-SVN: r88109
2004-09-25 19:46:21 +00:00
Tom Tromey 4b2582f055 re PR java/17500 (Anonymous inner class compile freakout)
PR java/17500:
	* testsuite/libjava.compile/pr17500.java: New file.

From-SVN: r88107
2004-09-25 19:08:27 +00:00
Shashank Bapat 27a92d683b RE.java (initialize): Add RETokenLookAhead support.
2004-09-25  Shashank Bapat  <shashankbapat@yahoo.com>
            Mark Wielaard  <mark@klomp.org>

       * gnu/regexp/RE.java (initialize): Add RETokenLookAhead support.
       * gnu/regexp/RETokenLookAhead.java: New file.

       * Makefile.am (ordinary_java_source_files): Add RETokenLookAhead.java.
       * Makefile.in: Regenerated.

Co-Authored-By: Mark Wielaard <mark@klomp.org>

From-SVN: r88106
2004-09-25 19:04:34 +00:00
Michael Koch 20319d321a ObjectStreamField.java: Removed unused import statement.
2004-09-25  Michael Koch  <konqueror@gmx.de>

	* java/io/ObjectStreamField.java:
	Removed unused import statement.

From-SVN: r88091
2004-09-25 09:47:45 +00:00
Tom Tromey 013303df1b re PR java/15656 (ICE segfault in lex.c)
PR java/15656:
	* testsuite/libjava.compile/pr15656.xfail: New file.
	* testsuite/libjava.compile/pr15656.java: new file.

From-SVN: r88047
2004-09-24 15:42:57 +00:00
Tom Tromey 0a08595abd re PR java/16789 (ICE in force_evaluation_order() on valid code)
PR java/16789:
	* testsuite/libjava.lang/pr16789.out: New file.
	* testsuite/libjava.lang/pr16789.java: New file.

From-SVN: r88046
2004-09-24 15:41:17 +00:00
Andrew Haley 0a41faf022 re PR java/16927 (assert statement fails at -O1 and above)
2004-09-24  Andrew Haley  <aph@redhat.com>

        PR java/16927
        * testsuite/libjava.compile/AssertBug.java: New file.

From-SVN: r88035
2004-09-24 13:55:42 +00:00
Casey Marshall c80a4b7eec 2004-09-24 Casey Marshall <csm@gnu.org>
* java/util/PropertyPermissionCollection.java
	(implies): avoid infinite loop.

From-SVN: r88033
2004-09-24 13:27:57 +00:00
Andrew John Hughes 7e53ab6605 2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
* javax/security/auth/PrivateCredentialPermission.java
	(PrivateCredentialPermission): added serialization UID

From-SVN: r88031
2004-09-24 13:25:24 +00:00
Ilya Perminov c7c671b942 2004-09-24 Ilya Perminov <iperminov@logicalsoft.com>
* gnu/java/rmi/server/UnicastServer.java
	(incomingMessageCall): Added code to handle Errors.
	* gnu/java/rmi/server/UnicastServerRef.java
	(incomingMessageCall): Added code to handle Errors.

From-SVN: r88030
2004-09-24 12:29:48 +00:00
Tom Tromey 667196047f ClassLoader.java (loadedClasses): Declare as HashMap.
2004-09-24  Tom Tromey  <tromey@redhat.com>

	* java/lang/ClassLoader.java (loadedClasses): Declare as HashMap.
	(definedPackages): Likewise.

From-SVN: r88027
2004-09-24 11:25:42 +00:00
Michael Koch 28c23a8cd3 ObjectInputStream.java: Re-ordered imports.
2004-09-24  Michael Koch  <konqueror@gmx.de>

	* java/io/ObjectInputStream.java:
	Re-ordered imports.

From-SVN: r88025
2004-09-24 10:48:12 +00:00
Casey Marshall 629a2d2b25 ObjectInputStream.java (callReadMethod): re-throw `ClassNotFoundException'.
2004-09-24  Casey Marshall <csm@gnu.org>

	* java/io/ObjectInputStream.java (callReadMethod): re-throw
	`ClassNotFoundException'.

From-SVN: r88023
2004-09-24 09:31:28 +00:00
Jeroen Frijters 73eb130916 ObjectInputStream.java (readObject): Delegate instantation of Externalizable classes to ObjectStreamClass.
2004-09-24  Jeroen Frijters  <jeroen@frijters.net>

	* java/io/ObjectInputStream.java (readObject): Delegate instantation
	of Externalizable classes to ObjectStreamClass.
	* java/io/ObjectStreamClass.java (newInstance): New method to
	instantiate Externalizable (while ignoring the accessibility of
	the constructor). (constructor): New field to cache the constructor.

From-SVN: r88019
2004-09-24 09:05:10 +00:00
Mark Wielaard 8ac4bd3706 URL.java (systemClassLoader): New static field.
2004-09-24  Mark Wielaard  <mark@klomp.org>

	* java/net/URL.java (systemClassLoader): New static field.
	(getURLStreamHandler): Always use system/application classloader
	for finding URLStreamhandler. Remove unecessary instanceof checks.

From-SVN: r88018
2004-09-24 08:02:09 +00:00
Guilhem Lavaux 56a4b3e249 2004-09-24 Guilhem Lavaux <guilhem@kaffe.org>
* java/net/URL.java
	(set): This method now matches the behaviour of the JDK.
	(DEFAULT_SEARCH_PATH): Added "gnu.inet".

From-SVN: r88016
2004-09-24 07:35:40 +00:00
Michael Koch 5bb3fc2713 [multiple changes]
2004-09-24  Guilhem Lavaux  <guilhem@kaffe.org>

	* java/net/URL.java (URL): Delete whitespaces in the protocol string.

2004-09-24  Jeroen Frijters  <jeroen@frijters.net>

	* java/net/URL.java (URL(String,String,int,String,URLStreamHandler):
	Don't set authority if host isn't specified.

From-SVN: r88015
2004-09-24 06:51:59 +00:00
Michael Koch 9e54846fac PipeImpl.java: Use VMPipe for native stuff.
2004-09-24  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
	* gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
	* gnu/java/nio/VMPipe.java,
	gnu/java/nio/VMSelector.java:
	New files.
	* gnu/java/nio/natPipeImplEcos.cc,
	gnu/java/nio/natPipeImplPosix.cc,
	gnu/java/nio/natPipeImplWin32.cc:
	Ported to VMPipe.
	* gnu/java/nio/natSelectorImplEcos.cc,
	gnu/java/nio/natSelectorImplPosix.cc,
	gnu/java/nio/natSelectorImplWin32.cc:
	Ported to VMSelector.
	* Makefile.am: Added new files gnu/java/nio/VMPipe.java and
	gnu/java/nio/VMSelector.java.
	* Makefile.in: Regenerated.

From-SVN: r88014
2004-09-24 06:41:57 +00:00
Jeroen Frijters e6ab8dc2e7 2004-09-24 Jeroen Frijters <jeroen@frijters.net>
* java/lang/StackTraceElement.java
	(className): Renamed field to declaringClass to be compatible
	with Sun serialization format.

From-SVN: r88012
2004-09-24 05:58:28 +00:00
Michael Koch 09bddb9209 AppletContext.java, [...]: Jalopied and checkstyle clean.
2004-09-23  Michael Koch  <konqueror@gmx.de>

	* java/applet/AppletContext.java,
	java/applet/Applet.java,
	java/applet/AppletStub.java,
	java/applet/AudioClip.java:
	Jalopied and checkstyle clean.

From-SVN: r87972
2004-09-23 18:24:00 +00:00
Mark Wielaard 093942ac67 2004-09-23 Mark Wielaard <mark@klomp.org>
* java/util/Collections.java
	(binarySearch(List, Object, Comparator)): Explicitly
	reverse direction in list iterator.
	(rotate): Just return when list is empty.

From-SVN: r87970
2004-09-23 18:01:46 +00:00
Tom Tromey 51c9fed94b re PR java/17329 (ICE: SEGV in java_gimplify_expr)
PR java/17329:
	* testsuite/libjava.compile/pr17329.java: New file.

From-SVN: r87960
2004-09-23 16:24:42 +00:00
Tom Tromey 53d26678b9 re PR java/17380 (Bad diagnostic and ICE on valid code...)
PR java/17380:
	* testsuite/libjava.jacks/jacks.xfail: Added 9.2-implicit-6 and
	9.2-implicit-7.

From-SVN: r87958
2004-09-23 16:20:50 +00:00
Kelley Cook 5b7a26f696 Makefile.am: Run aclocal with -I ../config
2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>

	* Makefile.am: Run aclocal with -I ../config
	* acinclude.m4: Delete macros picked up from ../config and tidy.
	(AM_ICONV,AM_LC_MESSAGES, PKG_CHECK_MODULES): Delete.
	* aclocal.m4, configure, Makefile.in, gcj/Makefile.in: Regenerate.
	* include/Makefile.in, testsuite/Makefile.in: Regenerate.

From-SVN: r87913
2004-09-23 01:14:03 +00:00