aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2005-03-11libjava.exp (libjava_init): Use the same target check for Darwin.Andreas Tobler3-8/+30
2005-03-11 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_init): Use the same target check for Darwin. (libjava_arguments): Likewise. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Likewise. (gcj_jni_test_one): Likewise. (gcj_jni_invocation_compile_c_to_binary): Likewise. Add flags to keep the Darwin linker quiet. (gcj_jni_invocation_test_one): Use the same target check for Darwin. Add -liconv for Darwin. From-SVN: r96311
2005-03-11Main.java (main): Handle '-p'.Tom Tromey5-16/+94
libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Handle '-p'. (usage): Document '-p'. * Makefile.in: Rebuilt. * Makefile.am (dbexecdir): New variable. (db_name): Likewise. (dbexec_DATA): Likewise. ($(db_name)): New target. (AM_CXXFLAGS): Define LIBGCJ_DEFAULT_DATABASE. * java/lang/natRuntime.cc (insertSystemProperties): Set default system database. gcc/java: * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. (libgcj Runtime Properties): Document the default .db. From-SVN: r96303
2005-03-11exception.cc: Remove stray MethodRef.h include.Bryce McKinlay10-604/+14
2005-03-10 Bryce McKinlay <mckinlay@redhat.com> * exception.cc: Remove stray MethodRef.h include. * java/lang/natClass.cc: Likewise. * gnu/gcj/runtime/MethodRef.java: Removed. * gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc, gnu/gcj/runtime/natStackTrace.cc: Really removed. * java/lang/natRuntime.cc (_load): Remove unsed variable. * Makefile.am (ordinary_java_source_files): Remove MethodRef.java. * Makefile.in: Rebuilt. From-SVN: r96288
2005-03-10Makefile.in: Rebuilt.Tom Tromey3-2/+15
* Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added MethodRef.java. From-SVN: r96270
2005-03-10SAXEventSink.java: Ignore element declarations if not currently parsing the DTD.Chris Burdess2-0/+12
2005-03-10 Chris Burdess <dog@bluezoo.org> * gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if not currently parsing the DTD. From-SVN: r96255
2005-03-10New Stack Trace infrastructure.Bryce McKinlay32-822/+1164
2005-03-10 Bryce McKinlay <mckinlay@redhat.com> New Stack Trace infrastructure. * Makefile.am (libgcj0_convenience_la_SOURCES): Add stacktrace.cc. (gnu/gcj/runtime/StackTrace.lo): Removed. (ordinary_java_source_files): Remove obsolete files. (nat_source_files): Remove obsolete files. Add natVMThrowable.cc. * configure.host (fallback_backtrace_h): Set backtrace header for mingw and cygwin targets. * configure.ac: Make symlink for fallback backtrace headers. * Makefile.in, configure: Rebuilt. * defineclass.cc (_Jv_ClassReader::read_one_code_attribute): Read 'LineNumberTable' attribute. (_Jv_ClassReader::read_one_class_attribute): Read 'SourceFile' attribute. (_Jv_ClassReader::handleCodeAttribute): Initialize method line table fields. * exception.cc: Remove unused include. * interpret.cc (DIRECT_THREADED, insn_slot): Moved to java-interp.h. (SAVE_PC): New macro. Save current PC in the interpreter frame. (NULLCHECK, NULLARRAYCHECK): Use SAVE_PC. (_Jv_InterpMethod::compile): Translate bytecode PC values in the line table to direct threaded instruction values. (_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Removed. (_Jv_InterpMethod::run): No longer member function. All callers updated. Remove _Unwind calls. Call SAVE_PC whenever a call is made or where an instruction could throw. (_Jv_InterpMethod::get_source_line): New. Look up source line numbers in line_table. * prims.cc (catch_segv): Construct exception after MAKE_THROW_FRAME. (catch_fpe): Likewise. * stacktrace.cc: New file. Stack trace code now here. * gnu/gcj/runtime/MethodRef.java: * gnu/gcj/runtime/NameFinder.java: Mostly reimplemented. Now simply calls addr2line to look up PC addresses in a given binary or shared library. * gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc, gnu/gcj/runtime/natStackTrace.cc: Removed. * gnu/java/lang/MainThread.java (call_main): Add comment warning that this function name is specially recognised by the stack trace code and shouldn't be changed. * include/java-interp.h (DIRECT_THREADED, insn_slot): Moved here. (struct _Jv_LineTableEntry, line_table, line_table_len): New. (_Jv_InterpMethod::run): Update declaration. (_Jv_StackTrace_): New friend. NameFinder and StackTrace no longer friends. (_Jv_InterpFrame): Renamed from _Jv_MethodChain. Add PC field. * include/java-stack.h: New file. Declarations for stack tracing. * include/jvm.h (_Jv_Frame_info): Removed. * java/lang/Class.h: Update friend declarations. * java/lang/VMClassLoader.java (getSystemClassLoader): Simplify exception message. * java/lang/VMThrowable.java (fillInStackTrace): Now native. (getStackTrace): Now native. (data): New RawDataManaged field. * java/lang/natClass.cc: Update includes. (forName): Use _Jv_StackTrace::GetCallingClass for calling-classloader check. (getClassLoader): Likewise. * java/lang/natRuntime.cc: Update includes. (_load): Use _Jv_StackTrace::GetFirstNonSystemClassLoader. * java/lang/natVMSecurityManager.cc: Update includes. (getClassContext): Use _Jv_StackTrace::GetClassContext. * java/lang/natVMThrowable.cc: New file. Native methods for VMThrowable. * java/lang/reflect/natArray.cc: Update includes. (newInstance): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natConstructor.cc: Update includes. (newInstance): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natField.cc: Update includes. (getAddr): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/lang/reflect/natMethod.cc: Update includes. (invoke): Use _Jv_StackTrace::GetCallingClass to implement accessibility check. * java/util/natResourceBundle.cc: Update includes. (getCallingClassLoader): Use _Jv_StackTrace::GetCallingClass. * java/util/logging/natLogger.cc: Update includes. Use _Jv_StackTrace::GetCallerInfo to get call-site info. * sysdep/generic/backtrace.h: Fallback backtrace code. Stub implementation. * sysdep/i386/backtrace.h: New. Fallback backtrace code. i386 implementation. From-SVN: r96253
2005-03-10re PR java/20312 (No warning on bad method)Ranjit Mathew4-1/+15
* testsuite/libjava.compile/PR20312.java: New file. * testsuite/libjava.compile/PR20312.xfail: Likewise. * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15. From-SVN: r96252
2005-03-10FileChannelImpl.java (smallTransferFrom): New.Andrew Haley2-12/+97
2005-03-09 Andrew Haley <aph@redhat.com> * gnu/java/nio/channels/FileChannelImpl.java (smallTransferFrom): New. (smallTransferTo): New. (transferFrom): Loop around smallTransferFrom, copying pageSize bytes each time. (transferTo): Likewise. From-SVN: r96240
2005-03-09re PR libgcj/20389 (BufferedInputStream gets ArrayIndexOutOfBoundsExeception)David Daney3-55/+46
2005-03-09 David Daney <ddaney@avtrex.com> PR libgcj/20389 Merge BufferedInputStream from GNU Classpath. * java/io/BufferedInputStream.java (marktarget): Field removed. (CHUNKSIZE): Field removed. (bufferSize): New field. (BufferedInputStream): Initialize fields. (close): Invalidate mark and buffer indexes. (mark): Rewritten. (read()): Move mark handling code to refill. (read(byte[], int, int)): Ditto. (skip): Ditto and simplify EOF testing. (refill): Rewritten. * java/io/InputStreamReader.java (refill): Removed mark and reset of internal BufferedInputStream. From-SVN: r96217
2005-03-09natVMClassLoader.cc (defineClass): Reference 'systemClassLoader' field directly.Tom Tromey4-6/+16
* java/lang/natVMClassLoader.cc (defineClass): Reference 'systemClassLoader' field directly. * java/lang/natRuntime.cc (_load): Reference 'systemClassLoader' field directly. * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Reference 'systemClassLoader' field directly. (_Jv_UnregisterInitiatingLoader): Likewise. (_Jv_FindClass): Likewise. From-SVN: r96208
2005-03-09fdlibm.h: Merge an AIX define from GNU Classpath.Andreas Tobler3-6/+13
2005-03-09 Andreas Tobler <a.tobler@schweiz.ch> * java/lang/fdlibm.h: Merge an AIX define from GNU Classpath. * java/lang/mprec.h: Remove commented headers. Fix comment to match the file in GNU Classpath style. From-SVN: r96207
2005-03-09URLClassLoader.java (addURLImpl): Reset 'thisString'.Tom Tromey2-15/+26
* java/net/URLClassLoader.java (addURLImpl): Reset 'thisString'. (toString): Synchronize. From-SVN: r96205
2005-03-08[multiple changes]Bryce McKinlay3-2/+5
2005-03-07 Ranjit Mathew <rmathew@hotmail.com> * lang.c (flag_new_verifier): Enable by default, regardless of ABI. 2005-03-08 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.lang/pr13107_2.xfail: Remove xfail. * testsuite/libjava.lang/pr13107_3.xfail: Likewise. From-SVN: r96114
2005-03-07gcj.texi (Invoking gcj-dbtool): Document '-f'.Tom Tromey2-2/+9
gcc/java: * gcj.texi (Invoking gcj-dbtool): Document '-f'. libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'. (usage): Document '-f'. From-SVN: r96041
2005-03-07VMCompiler.java (md5Digest): New field.Tom Tromey2-2/+32
* java/lang/VMCompiler.java (md5Digest): New field. (compileClass): Clone md5Digest instead of looking up a new one. From-SVN: r96039
2005-03-07re PR java/20215 (gcj does not accept classes with same name fields)Tom Tromey3-24/+37
PR java/20215: * include/jvm.h (_Jv_Linker::find_field_helper): Updated. * link.cc (find_field_helper): Added 'type' argument. (find_field): Updated. From-SVN: r96032
2005-03-07natXAnyEvent.cc (loadNext): Added timeout.Scott Gilbertson5-17/+41
2005-04-07 Scott Gilbertson <scottg@mantatest.com> * gnu/gcj/xlib/natXAnyEvent.cc (loadNext): Added timeout. * gnu/awt/xlib/XCanvasPeer.java (setBackground): Removed throw UnsupportedOperationException, fixed comments. (setFont, setForeground): Fixed comments. * gnu/awt/xlib/XEventLoop.java (postNextEvent): Changed return type to boolean. (getNextEvent): Fixed javadocs. * gnu/awt/xlib/XToolkit.java (interrupted): Removed field. (nativeQueueEmpty): Removed unused code. (iterateNativeQueue): Removed outer loop. From-SVN: r96029
2005-03-06re PR bootstrap/20155 (libgcj build fails with "execvp: /bin/sh: Argument ↵Roger Sayle3-28/+9
list too long") PR libgcj/20155 * Makefile.am (libgcj0_convenience.la): Revert last change. * Makefile.in: Regenerate. From-SVN: r95984
2005-03-05* ChangeLog: Fix gtk_jawt.c entry.Thomas Fitzsimmons1-14/+15
From-SVN: r95944
2005-03-05gtk_jawt.c (classpath_jawt_get_drawable, [...]): New functions.Anthony Green5-0/+61
2005-02-15 Anthony Green <green@redhat.com> * jni/gtk-peer/gtk_jawt.c (classpath_jawt_get_drawable, classpath_jawt_lock, classpath_jawt_unlock): New functions. * jawt.c (_Jv_JAWT_Lock, _Jv_JAWT_Unlock): New functions. (_Jv_GetDrawingSurface): Set visualID. (_Jv_FreeDrawingSurfaceInfo): Clear visualID. (JAWT_GetAWT): Set Lock and Unlock. * include/jawt_md.h (struct _JAWT_X11DrawingSurfaceInfo): Add visualID. * include/jawt.h (JAWT_VERSION_1_4, JAWT_LOCK_ERROR, JAWT_LOCK_CLIP_CHANGED, JAWT_LOCK_BOUNDS_CHANGED, JAWT_LOCK_SURFACE_CHANGED): New macros. (struct _JAWT): Add Lock and Unlock. From-SVN: r95943
2005-03-05re PR bootstrap/20155 (libgcj build fails with "execvp: /bin/sh: Argument ↵Roger Sayle3-3/+39
list too long") 2005-03-05 Roger Sayle <roger@eyesopen.com> Alexandre Oliva <aoliva@redhat.com> Kelley Cook <kcook@gcc.gnu.org> PR libgcj/20155 * Makefile.am (libgcj0_convenience.la): New rule to create a file of the object files to link to avoid exceeding the command line length limits on some platforms. (clean-local): Clean up objectlist files. * Makefile.in: Regenerate. Co-Authored-By: Alexandre Oliva <aoliva@redhat.com> Co-Authored-By: Kelley Cook <kcook@gcc.gnu.org> From-SVN: r95934
2005-03-05dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case.Andreas Tobler9-13/+41
2005-03-05 Andreas Tobler <a.tobler@schweiz.ch> * java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case. Initialize pointer mlo. * java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and delta. * java/lang/e_asin.c (__ieee754_asin): Initialize variable t. * java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo and k. * java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize uninitialized variable z. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef possible unused variables. * gnu/java/nio/natPipeImplPosix.cc (init): Remove self. * jawt.c: Include <stdlib.h> to fix implict declaration of malloc. From-SVN: r95925
2005-03-03re PR libgcj/20292 (new test case PR16923 fails)Thomas Fitzsimmons2-1/+12
2005-03-03 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/20292 * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_compile_c_to_binary): Add -I. -I.. to compile flags. (gcj_jni_invocation_test_one): Add -L../.libs to cxx flags. From-SVN: r95848
2005-02-28configure.host: Don't use -mxgot for MIPS builds.David Daney2-1/+4
2005-02-23 David Daney <ddaney@avtrex.com> * configure.host: Don't use -mxgot for MIPS builds. From-SVN: r95689
2005-02-28re PR bootstrap/17383 (Building in src dir fails)Paolo Bonzini10-70/+111
2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * Makefile.def (target_modules): Remove "stage", now unnecessary. * Makefile.tpl (HOST_SUBDIR): New substitution. (STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET, USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET, USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET, USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it. (Host modules, Bootstrapped modules): Use it. (Build modules, Target modules): Do not create symlink trees, always configure out-of-srcdir. (distclean): Try removing $(host_subdir) with rm before using rm -rf. * configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET, GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use $(HOST_SUBDIR). Create a symlink for host_subdir. * Makefile.in: Regenerate. * configure: Regenerate. config: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src gcc build is going. gcc: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * gcc/Makefile.in (host_subdir): New. (build_objdir): New. Replace ../$(build_subdir) with it throughout. * gcc/configure: Regenerate. libada: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * Makefile.in (GCC_DIR): Add $(HOST_SUBDIR) to the definition. libjava: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (COMPPATH): Removed. (ZIP, GCJH): Replace it with ../$(host_subdir). (built_gcc_dir): Add $(host_subdir). * configure: Regenerate. * Makefile.in, include/Makefile.in, testsuite/Makefile.in, gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in: Regenerate. libobjc: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (Determine CFLAGS for gthread): Use $host_subdir. * configure: Regenerate. * Makefile.in (host_subdir): New. (INCLUDES): Use it. From-SVN: r95680
2005-02-24TextAttribute.java: changed names to lower case;David Gilbert2-57/+249
2005-02-24 David Gilbert <david.gilbert@object-refinery.com> * java/awt/font/TextAttribute.java: changed names to lower case; (readResolve): implemented. Added doc comments all over. From-SVN: r95491
2005-02-23re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)Thomas Fitzsimmons11-52/+383
2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and JvVMOption. 2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * jni.cc (JNI_CreateJavaVM): Check JNI version. Cast args to JvVMInitArgs. Pass args to _Jv_CreateJavaVM and check return value. Move argument parsing code to prims.cc. * prims.cc (no_properties): Remove. (_Jv_Compiler_Properties): Initialize to NULL. (_Jv_Properties_Count): Initialize to 0. (parse_verbose_args): New function. (parse_init_args): New function. (_Jv_CreateJavaVM): Call parse_init_args. (_Jv_RunMain): Check return value of _Jv_CreateJavaVM. * gcj/cni.h (JvVMOption): New struct. (JvVMInitArgs): Likewise. (JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than void*. * libjava/gcj/javaprims.h (_Jv_VMOption): New struct. (_Jv_VMInitArgs): Likewise. * include/java-props.h (_Jv_Properties_Count): Declare. * java/lang/natRuntime.cc (insertSystemProperties): Use _Jv_Properties_Count in for loop exit condition. * testsuite/libjava.jni/jni.exp (gcj_invocation_compile_c_to_binary): New procedure. (gcj_invocation_test_one): Likewise. (gcj_jni_run): Run JNI invocation API tests. * testsuite/libjava.jni/invocation/PR16923.c, testsuite/libjava.jni/invocation/PR16923.java, testsuite/libjava.jni/invocation/PR16923.out: New test. From-SVN: r95459
2005-02-23Makefile.am: Added new file gnu/java/nio/ChannelReader.java.Michael Koch3-0/+12
2005-02-23 Michael Koch <konqueror@gmx.de> * Makefile.am: Added new file gnu/java/nio/ChannelReader.java. * Makefile.in: Regenerated. From-SVN: r95445
2005-02-23ChannelReader: Fixed comments.Robert Schuster3-1/+225
2005-02-23 Robert Schuster <thebohemian@gmx.net> * gnu/java/nio/ChannelReader: Fixed comments. 2005-02-23 Robert Schuster <thebohemian@gmx.net> * java/nio/channels/Channels: Added FIXMEs about stub method implementation. (newReader): Implemented. * gnu/java/nio/ChannelReader: New class. From-SVN: r95444
2005-02-23SimpleDateFormat.java: Removed unused import.Michael Koch2-1/+5
2005-02-23 Michael Koch <konqueror@gmx.de> * java/text/SimpleDateFormat.java: Removed unused import. From-SVN: r95443
2005-02-23re PR awt/20029 (Robot needs XTest)Thomas Fitzsimmons5-4/+97
2005-02-22 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/20029: * Makefile.am (lib_gnu_java_awt_peer_gtk_la_CFLAGS): Add X_CFLAGS. (lib_gnu_java_awt_peer_gtk_la_LDFLAGS): Add X_LIBS and -lXtst. * Makefile.in: Regenerate. * configure.ac: Check for libXtst. * configure: Regenerate. From-SVN: r95428
2005-02-22AlgorithmParameterGenerator.java (getInstance): Mention provider when ↵Mark Wielaard7-6/+16
throwing NoSuchProviderException. 2005-02-22 Mark Wielaard <address@bogus.example.com> * java/security/AlgorithmParameterGenerator.java (getInstance): Mention provider when throwing NoSuchProviderException. * java/security/AlgorithmParameters.java (getInstance): Likewise. * java/security/KeyFactory.java (getInstance): Likewise. * java/security/KeyStore.java (getInstance): Likewise. * java/security/SecureRandom.java (getInstance): Likewise. * java/security/cert/CertificateFactory.java (getInstance): Likewise. From-SVN: r95416
2005-02-22Proxy.java, [...]: Don't catch java.lang.ThreadDeath.Jeroen Frijters6-2/+27
2005-02-22 Jeroen Frijters <jeroen@frijters.net> * java/lang/reflect/Proxy.java, java/net/URL.java, java/security/SecureRandom.java, java/util/Timer.java, java/util/prefs/AbstractPreferences.java: Don't catch java.lang.ThreadDeath. From-SVN: r95415
2005-02-222005-02-22 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2-5/+40
* java/awt/font/TransformAttribute.java, (TransformAttribute(AffineTransform)): throw IllegalArgumentException for null transform. (getTransform): return a copy of transform. Added doc comments to all. From-SVN: r95408
2005-02-222005-02-22 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters12-5/+40
* java/io/Externalizable.java, java/io/Serializable.java (serialVersionUID): Removed. * java/rmi/server/RemoteObject.java, java/rmi/server/UID.java (serialVersionUID): Made private. * java/rmi/server/RemoteRef.java, java/rmi/server/ServerRef.java (serialVersionUID): Set proper value. * java/security/interfaces/DSAPrivateKey.java, java/security/interfaces/DSAPublicKey.java, java/security/interfaces/RSAMultiPrimePrivateCrtKey.java, java/security/interfaces/RSAPrivateCrtKey.java, java/security/interfaces/RSAPrivateKey.java, java/security/interfaces/RSAPublicKey.java, javax/crypto/SecretKey.java (serialVersionUID): Added. From-SVN: r95406
2005-02-22* java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java".Tom Tromey2-1/+8
From-SVN: r95405
2005-02-22re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey2-14/+42
--indirect-dispatch) PR java/20056: * verify.cc (type::EITHER): New constant. (check_field_constant): Use it. (type::compatible): Handle it. From-SVN: r95403
2005-02-22PolicyFile.java, [...]: Fixed copyright header.Michael Koch4-19/+30
2005-02-22 Michael Koch <konqueror@gmx.de> * gnu/java/security/PolicyFile.java, gnu/java/security/pkcs/PKCS7SignedData.java, gnu/java/security/pkcs/SignerInfo.java: Fixed copyright header. From-SVN: r95399
2005-02-222005-02-22 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2-14/+9
* java/beans/PropertyDescriptor.java (PropertyDescriptor,setReadMethod): Set propertyType. From-SVN: r95393
2005-02-222005-02-22 Michael Koch <konqueror@gmx.de>Michael Koch6-21/+37
* java/nio/DirectByteBufferImpl.java (owner): Fixed formatting of javadoc. * java/text/DateFormat.java (getAvailableLocales): Fixed formatting. * java/text/SimpleDateFormat.java: Fixed formatting and import statement order. * java/util/Calendar.java (Calendar): Fixed javadoc to be HTML compliant. * java/util/SimpleTimeZone.java: Fixed javadocs. From-SVN: r95392
2005-02-222005-02-22 Roman Kennke <roman@ontographics.com>Roman Kennke2-1/+6
* javax/swing/plaf/basic/BasicLookAndFeel.java (initComponentDefaults): Fixed Button left and right margin. From-SVN: r95389
2005-02-22Robot.java (waitForIdle): Call invokeAndWait on an empty Runnable.Thomas Fitzsimmons2-13/+18
2005-02-22 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/Robot.java (waitForIdle): Call invokeAndWait on an empty Runnable. From-SVN: r95384
2005-02-22re PR awt/17952 (Windows don't show with window manager that supports ↵Thomas Fitzsimmons5-66/+88
_NET_REQUEST_FRAME_EXTENTS) 2005-02-22 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/17952: * gnu/java/awt/peer/gtk/GtkWindowPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (getWidth): New method. (getHeight): Likewise. (create): Remove width, height and insets parameters. Move size setup ... (realize_cb): ... here. New function. (connectSignals): Connect realize_cb. (request_frame_extents): Remove FIXME. Move postInsetsChangedEvent lookup ... * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c (gtkInit): ... here. Look up GtkWindowPeer getWidth and getHeight methods. * jni/gtk-peer/gtkpeer.h (postInsetsChangedEventID): Declare jmethodID. (windowGetWidthID): Likewise. (windowGetHeightID): Likewise. From-SVN: r95383
2005-02-22re PR awt/19842 (MouseEvent ignores Button2 and Button3)Thomas Fitzsimmons2-3/+9
2005-02-21 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/19842 * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (button_to_awt_mods): Return BUTTON masks, not BUTTON_DOWN masks. From-SVN: r95382
2005-02-22Check in missed file from last commit.Bryce McKinlay1-51/+51
From-SVN: r95381
2005-02-22[multiple changes]Bryce McKinlay10-252/+451
2005-02-21 Bryce McKinlay <mckinlay@redhat.com> Merge serialization from GNU Classpath. * gcj/method.h: Add missing #includes. * java/io/ObjectInputStream.java (readClassDescriptor): Check for primitive class IDs on the stream here... (resolveClass): ...not here. * java/io/ObjectStreamField.java: Use VMObjectStream class calls to set fields. * java/io/VMObjectStreamClass.java (setDoubleNative, setFloatNative, setLongNative, setIntNative, setShortNative, setCharNative, setByteNative, setBooleanNative, setObjectNative): New native methods. * java/io/natVMObjectStreamClass.java (setDoubleNative, setFloatNative, setLongNative, setIntNative, setShortNative, setCharNative, setByteNative, setBooleanNative, setObjectNative): Implement them. * java/io/natObjectInputStream.cc (allocateObject): Add new parameters from Classpath's version. Use _Jv_FromReflectedConstructor(). Call the constructor here. (callConstructor): Removed. (getCallersClassLoader): Removed. * java/lang/reflect/Field.java (setByte, setShort, setInt, setLong, setFloat, setDouble, setChar, setBoolean): Add 'checkFinal' parameter to control whether setting final field values is permitted. Call getAddr() with checkFinal parameter instead of setAddr(). * java/lang/reflect/natField.cc (getType): Lookup and resolve field only if not done already. (getAddr): Add checkFinal parameter. Do the final field check only if checkFinal is set. (setAddr): Removed. 2005-02-21 Mark Wielaard <mark@klomp.org> # Fixes bug #11957 * java/io/ObjectInputStream.java (resolveClass): Don't check "void" twice. 2005-02-21 Mark Wielaard <mark@klomp.org> Fixes bug #11618. * java/io/ObjectInputStream.java (readClassDescriptor): Handle classes without a super class and us ObjectStreamClass.lookupForClassObject(). (resolveClass): Check for primitive types. (lookupClass): Return null when argument is null. 2005-02-21 Jeroen Frijters <jeroen@frijters.net> * java/io/ObjectInputStream.java (readObject): Fix to consume TC_ENDBLOCKDATA after readExternal. 2005-02-21 Jeroen Frijters <jeroen@frijters.net> * java/io/ObjectOutputStream.java (writeObject, callWriteMethod): Replaced reflection with accessing cached info in ObjectStreamClass. (getMethod): Removed. * java/io/ObjectStreamClass.java (findMethod): Added check to make sure the method found has the right modifiers. (cacheMethods): Added writeReplace and writeObject methods. (setFlags): Look at new writeObjectMethod field instead of doing reflection again. (writeReplaceMethod): New field. (writeObjectMethod): New field. 2005-02-21 Guilhem Lavaux <guilhem@kaffe.org> Jeroen Frijters <jeroen@frijters.net> * java/io/ObjectInputStream.java (newObject): Changed prototype. Get a constructor reflect object directly. (callConstructor): Removed. (allocateObject): Changed prototype. (readClassDescriptor): Build the constructor reflection directly. (readObject): Invoke newObject using the new prototype. * java/io/ObjectStreamClass.java (firstNonSerializableParent): Removed. (firstNonSerializableParentConstructor): Added. From-SVN: r95378
2005-02-22[multiple changes]Mark Wielaard8-903/+1839
2005-02-21 Mark Wielaard <mark@klomp.org> * gnu/java/locale/LocaleInformation_en.java: Extend localPatternChars to "GyMdkHmsSEDFwWahKzYeugAZ". 2005-02-21 Mark Wielaard <mark@klomp.org> * java/text/SimpleDateFormat.java (SimpleDateFormat(String, DateFormatSymbols)): Throw NullPointerException when formatData is null. 2005-02-21 Mark Wielaard <mark@klomp.org> * java/util/SimpleTimeZone.java (getOffset): Calculate beforeEnd by taking dstSavings into account. 2005-02-21 Sven de Marothy <sven@physto.se> * java/text/SimpleDateFormat.java, (parse): Set correct DST_OFFSET to the correct value. 2005-02-21 Mark Wielaard <mark@klomp.org> * java/util/SimpleTimeZone.java (checkRule): Throw IllegalArgumentException when month out of range. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/GregorianCalendar.java, (add): Don't set fields directly anymore. Use set() 2005-02-21 Mark Wielaard <mark@klomp.org> * java/text/SimpleDateFormat.java (CompiledField.toString): Use StringBuffer, not StringBuilder. (toString): Likewise. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/Calendar.java (clear): Dates should clear to local time. * java/util/GregorianCalendar.java (computeTime): Fix priority problem with DAY_OF_WEEK, Handle non-sunday-startig weeks and minimumDaysInFirstWeek. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/Calendar.java (Calendar): Constructor should clear fields. 2005-02-21 Sven de Marothy <sven@physto.se> * java/text/SimpleDateFormat.java (parse): Tweak handling of 2-year dates * java/util/Calendar.java (clear): Clear fields to correct value. * java/util/GregorianCalendar.java (computeTime): Correct handling of time zones. Correct field minimum values. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/Calendar.java (set) Invalidate all fields on first call to set(). 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/GregorianCalendar.java (computeTime): Fixed handling of time zones. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/Calendar.java (clear): Set values to Epoch instead of zero. (set): Set isSet to the relevant field pattern instead of just the field. * java/util/GregorianCalendar.java (getBundle): Removed. (getDayOfYear): Removed. (getFirstDayOfMonth): New private method. (nonLeniencyCheck): New private method. (computeTime): Correct handling of insufficient data. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/Calendar.java: Invalidate ERA field on setting the YEAR. * java/util/SimpleTimeZone.java: (getDaysInMonth): Reimplemented. * java/util/GregorianCalendar.java: (getLinearTime): Removed. (isLeapYear(int,boolean)): Removed. (before(), after()): Removed. (computeTime): Reimplemented. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/Calendar.java: Reformatted. * java/util/GregorianCalendar.java: Reformatted. * java/util/SimpleTimeZone.java: Reformatted. 2005-02-21 Sven de Marothy <sven@physto.se> * java/util/GregorianCalendar.java (GregorianCalendar): Update fields in the constructor 2005-02-21 Noa Resare <noa@resare.com> * java/util/Calendar.java (explicitDSTOffset): New instance field. (set(int,int)): Set and use new field. (set(int,int,int)): Check new field. 2005-02-21 Noa Resare <address@hidden> * java/util/Calendar.java(set): Fix for DST related regression. 2005-02-21 Jeroen Frijters <jeroen@frijters.net> * java/util/Calendar.java (setTimeInMillis): Added call to clear, removed computeFields call. * java/util/Date.java (Date(int,int,int,int,int,int)): Removed workaround for GregorianCalendar bug. * java/util/GregorianCalendar.java (GregorianCalendar): Chained all constructors to a (new) common constructor. (computeTime): Fixed support for lenient month treatment. (getLinearDay): Return long instead of int. (calculateDay): Added fields argument and changed day argument to long. 2005-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/SimpleDateFormat.java Lots of documentation updates. (readObject(java.io.ObjectInputStream)): Wraps IllegalArgumentException as specified. (compileFormat(String)): Uses standardChars rather than the local pattern characters. Throws IllegalArgumentException rather than storing a -1 field. (toString()): Extended to include all variables in a better format. (translateLocalizedPattern(String, String, String)): Renamed to better define the use of this method. 2005-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/DateFormat.java: Documented pattern character offset constants and added new ones. (Field): Added new static fields for new pattern chars. * java/text/SimpleDateFormat.java: (CompiledField): Changed name of FieldSizePair class to CompiledField after adding the character as an attribute. Changed fields to private and added accessors to give encapsulation. (CompiledField.CompiledField(int,int,char)): Extended with character field. (CompiledField.getField()): New accessor method. (CompiledField.getSize()): New acceessor method. (CompiledField.getCharacter()): New accessor method. (CompiledField.toString()): Added primarily for debugging. (standardChars): Now uses extended 24 character sequence. (compileFormat(String)): Changed to use CompiledField. (formatWithAttribute(java.util.Date, gnu.java.text.FormatBuffer, java.text.FieldPosition)): Changed to use CompiledField. New handler for RFC 822 timezones added. 2005-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/SimpleDateFormat.java: (parse(String, java.text.ParsePosition)): Changed 'E' and 'M' cases to use both short and long names. Extended 'z' case to also handle 'Z', and deal with simple GMT offsets such as +0100. (computeOffset(String)): New private method, which converts a GMT offset specification, such as GMT-0500 to a numeric offset in milliseconds. * java/util/TimeZone.java: (timezones()): Added "CEST", the daylight savings time version of "CET", or Central European Time. 2005-02-21 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/text/SimpleDateFormat.java: (parse): Set the DST offset to 0 when parsing GMT offset timezones. 2005-02-21 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/text/SimpleDateFormat.java: (parse): Use offset to set ZONE_OFFSET rather than the DST_OFFSET, so that GMT offset timezones change the right one. 2005-02-21 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/text/SimpleDateFormat.java: (getDateFormatSymbols()): return a copy (setDateFormatSymbols(java.text.DateFormatSymbols)): throw exception on null input (clone()): implemented to clone internal fields 2005-02-21 Sven de Marothy <sven@physto.se> * java/text/SimpleDateFormat.java (parse): comparison should be case-insensitive, ignore null strings. From-SVN: r95368
2005-02-212005-02-21 Robert Schuster <theBohemian@gmx.net>Robert Schuster2-2/+7
* gnu/java/beans/IntrospectionIncubator.java (addMethod) Reverts the patch that ntroduced a regression (see bug https://savannah.gnu.org/bugs/?func=detailitem&item_id=10938). From-SVN: r95355
2005-02-212005-02-21 Michael Koch <konqueror@gmx.de>Michael Koch3-3/+52
* java/awt/Checkbox.java (next_checkbox_number): New static variable. (generateName): New method. (getUniqueLong): Likewise. * java/awt/Window.java (next_window_number): New static variable. (generateName): New method. (getUniqueLong): Likewise. From-SVN: r95354
2005-02-21JarFile.java (verifyHashes): Check whether ZipEntry exists.Mark Wielaard2-1/+13
* java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry exists. From-SVN: r95347