aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2006-02-032006-02-03 Robert Schuster <robertschuster@fsfe.org>Robert Schuster2-1/+6
* link.cc: (_Jv_Linker::create_error_method): Added missing (void *) cast. From-SVN: r110544
2006-02-03re PR libgcj/26073 (libjava fails to compile)Robert Schuster3-45/+63
Fixes PR #26073. 2006-02-03 Robert Schuster <robertschuster@fsfe.org> * include/jvm.h: (_Jv_Linker::create_error_method): New method declaration. * link.cc: (_Jv_Linker::create_error_method): New method. (_Jv_Linker::link_symbol_table): Use new method above. From-SVN: r110543
2006-02-012006-02-01 Robert Schuster <robertschuster@fsfe.org>Robert Schuster9-48/+493
* link.cc: (_Jv_Linker::find_field_helper): Added checks. (_Jv_Linker::find_field): Use exception swallowing class resolution and added early return. (_Jv_ThrowNoClassDefFoundErrorTrampoline): New function. (_Jv_Linker::link_symbol_table): Use exception swallowing class resolution, added ffi_closure installation routine, use _Jv_ThrowNoClassDefFoundError for missing static method. (_Jv_Linker::ensure_class_linked): Added string check which does not trigger class resolution. * java/lang/natClassLoader.cc: (_Jv_FindClassNoException): New method. * java/lang/Class.h: (_Jv_FindClassNoException): New method declaration. * include/jvm.h: (_Jv_FindClassNoException): New method declaration. (_Jv_FindClassFromSignatureNoException): New method declaration. * prims.cc: (_Jv_FindClassFromSignatureNoException): New method. * gcj/javaprims.h: (_Jv_equalsUtf8Classname): New method declaration. (_Jv_isPrimitiveOrDerived): Dito. * prims.cc: (_Jv_equalsUtf8Classnames): New method. (_Jv_isPrimitiveOrDerived): New method. * verify.cc: (ref_intersection::equals): Use new classname comparison method. (type::compatible): Use new classname comparison method. Added check whether LHS' type is java.lang.Object . (type::resolve): Added new optional debug message and simplified if-expression. (type::to_array): Added codepath that generates an array type without resolving the element type. From-SVN: r110474
2006-01-31* NEWS: Add 4.1 updates.Mark Wielaard2-0/+295
From-SVN: r110437
2006-01-30java-interp.h (insn_index): New declaration.Keith Seitz3-0/+99
* include/java-interp.h (insn_index): New declaration. (num_insn_slots): New private variable. (get_line_table): New declaration. * interpret.cc (insn_index): New function. (get_line_table): New function. From-SVN: r110411
2006-01-24prims.cc (next_property_value): Never return NULL.Archit Shah2-7/+14
* prims.cc (next_property_value): Never return NULL. (process_gcj_properties): Copy 'props' before using it. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r110177
2006-01-23Class.h (_Jv_FindInterpreterMethod): Add new declaration.Keith Seitz3-5/+47
* java/lang/Class.h (_Jv_FindInterpreterMethod): Add new declaration. * java/lang/natClass.cc (_Jv_FindInterpreterMethod): New function. From-SVN: r110142
2006-01-23Fixed Changelog from last commit. to be:David Daney1-0/+1
* configure.host (disable_dladdr): Remove variable and its documentation. * configure.ac: Do not test for disable_dladdr. * configure: Regenerate. * include/config.h.in: Regenerate. From-SVN: r110139
2006-01-23configure.host (disable_dladdr): Remove variable and its documentation.David Daney5-20/+10
* configure.host (disable_dladdr): Remove variable and its documentation. * configure.ac: Do not test for disable_dladdr. * configure: Regenerate. From-SVN: r110137
2006-01-19jni.cc (_Jv_JNI_AttachCurrentThread): Return environment if it already exists.Tom Tromey2-4/+13
* jni.cc (_Jv_JNI_AttachCurrentThread): Return environment if it already exists. From-SVN: r109936
2006-01-18java-interp.h (_Jv_CompileMethod): Add declaration.Keith Seitz3-15/+45
* include/java-interp.h (_Jv_CompileMethod): Add declaration. (class _Jv_InterpMethod): Add _Jv_CompileMethod as a friend. * interpret.cc (_Jv_CompileMethod): New function. (run): Massage code to allow for NULL args. Update comments to explain NULL args. Return if compiling the method and args is NULL. From-SVN: r109918
2006-01-18re PR libgcj/25840 (libjava is broken on Linux/x86-64)H.J. Lu2-0/+6
2006-01-18 H.J. Lu <hongjiu.lu@intel.com> PR libgcj/25840 * include/x86_64-signal.h (RESTORE2): Add ".text\n". From-SVN: r109909
2006-01-17re PR classpath/20198 (java.security.CodeSource.getLocation output is ↵Tom Tromey2-8/+47
different than expected) PR classpath/20198: * java/net/URLClassLoader.java (FileURLLoader): Added argument. (JarURLLoader): Likewise. (addURLImpl): Canonicalize file URLs. From-SVN: r109844
2006-01-17Imported GNU Classpath 0.20Mark Wielaard444-30580/+75627
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
2006-01-17configure.ac (dbexecdir): New substituted var.Jakub Jelinek5-4/+26
* configure.ac (dbexecdir): New substituted var. * configure: Rebuilt. * Makefile.am (dbexecdir): Remove. * Makefile.in: Rebuilt. From-SVN: r109814
2006-01-15Update copyright year for last patch.Anthony Green1-1/+1
From-SVN: r109721
2006-01-15ServerSocket.java (accept): Remove bogus security check.Anthony Green2-5/+9
2006-01-14 Anthony Green <green@redhat.com> * java/net/ServerSocket.java (accept): Remove bogus security check. (implAccept): Add FIXME comment. From-SVN: r109719
2006-01-13MessagesBundle_fr.properties: Removed.Tom Tromey3-44/+5
* gnu/regexp/MessagesBundle_fr.properties: Removed. * gnu/regexp/MessagesBundle.properties: Removed. From-SVN: r109678
2006-01-13classpath.security: Removed.Tom Tromey4-3/+9
* java/security/classpath.security: Removed. * Makefile.in: Rebuilt. * Makefile.am (install-data-local): Don't install classpath.security. From-SVN: r109675
2006-01-09Character.java (toChars,toCodePoint): Correct these methods to use ↵Chris Burdess2-5/+11
algorithms from Unicode specification. 2006-01-08 Chris Burdess <dog@gnu.org> * java/lang/Character.java (toChars,toCodePoint): Correct these methods to use algorithms from Unicode specification. From-SVN: r109516
2006-01-09StringBuilder.java (appendCodePoint): New method.Tom Tromey6-31/+391
* java/lang/StringBuilder.java (appendCodePoint): New method. (insert): New overloads. * java/lang/StringBuffer.java (StringBuffer): New constructor. (charAt): Remerged javadoc. (codePointAt, codePointBefore): New methods. (appendCodePoint): New method. (append): New overloads. (insert): Likewise. (trimToSize, codePointCount, offsetByCodePoints): New methods. * java/lang/Float.java (SIZE): New field. (valueOf): New method. * java/lang/natDouble.cc (initIDs): Removed. * java/lang/Double.java (static initializer): Removed. (SIZE): New field. (valueOf): New method. (initIDs): Removed. From-SVN: r109497
2006-01-07re PR libgcj/24940 (libjava/configure uses $SED without defining it)Jakub Jelinek3-20/+26
PR libgcj/24940 * shlibpath.m4: Replace $SED with sed. * configure: Rebuilt. From-SVN: r109452
2006-01-07Character.java (SIZE, [...]): New fields from Classpath.Tom Tromey4-8/+426
* java/lang/Character.java (SIZE, MAX_CACHE, charCache, MIN_SURROGATE, MAX_SURROGATE): New fields from Classpath. (MIN_HIGH_SURROGATE, MAX_HIGH_SURROGATE, MIN_LOW_SURROGATE, MAX_LOW_SURROGATE): Javadoc fixes. (valueOf, reverseBytes, isHighSurrogate, isLowSurrogate, isSurrogatePair, toCodePoint, codePointAt, codePointBefore): New methods from Classpath. * java/lang/String.java (codePointAt, codePointBefore, codePointCount, contains, replace): New methods from Classpath. (contentEquals): Declare. * java/lang/natString.cc (contentEquals): New method. From-SVN: r109445
2006-01-06re PR libgcj/23499 (libgcj/classpath create empty directory ↵Tom Tromey3-40/+18
$PREFIX/share/classpath/api/) PR libgcj/23499: * lib/Makefile.in: Rebuilt. * lib/Makefile.am (glibj_DATA): Commented out. From-SVN: r109426
2006-01-06[multiple changes]Tom Tromey3-5/+18
2005-12-26 Anthony Green <green@redhat.com> * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount of data to read (dst.remaining()). * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto. 2005-11-11 Mark Wielaard <mark@klomp.org> Reported by john.zigman@anu.edu.au as bug #24608. * gnu/java/nio/SocketChannelImpl.java (read): Put readBytes in destination ByteBuffer when it doesn't have an array instead of len bytes. From-SVN: r109422
2006-01-06natThread.cc (finish_): Don't clear 'group'.Tom Tromey10-96/+122
* java/lang/natThread.cc (finish_): Don't clear 'group'. * sources.am, Makefile.in: Rebuilt. * java/lang/Runtime.java (exit): Merged with Classpath. (runShutdownHooks): New method from Classpath. * java/io/File.java (deleteOnExit): Use DeleteFileHelper, not FileDeleter. * gnu/gcj/runtime/FileDeleter.java: Removed. * java/lang/natRuntime.cc (runFinalizationForExit): New method. (exitInternal): Don't run finalizers or delete files. From-SVN: r109400
2006-01-05* java/lang/natPosixProcess.cc (reap): Ignore unknown children.Tom Tromey2-6/+7
From-SVN: r109383
2006-01-04posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MINKrister Walfridsson2-0/+6
2006-01-04 Krister Walfridsson <cato@df.lth.se> * posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN From-SVN: r109350
2006-01-04Class.h (_Jv_CopyClassesToSystemLoader): Updated.Tom Tromey4-7/+49
* java/lang/Class.h (_Jv_CopyClassesToSystemLoader): Updated. * java/lang/natClassLoader.cc (_Jv_CopyClassesToSystemLoader): Changed argument type. Use SystemClassLoader.addClass. * gnu/gcj/runtime/SystemClassLoader.java (addClass): New method. From-SVN: r109340
2006-01-03PR libgcj/9715, PR libgcj/19132:David Daney12-186/+420
* java/nio/charset/Charset.java (charsetForName): Try default provider first. (availableCharsets): Re-merged. (providers2): Likewise. (defaultCharset): Likewise. * sources.am, Makefile.in: Rebuilt. * gnu/java/nio/charset/Provider.java: Removed. * java/io/OutputStreamWriter.java (OutputStreamWriter(OutputStream,Charset)): New constructor. (OutputStreamWriter(OutputStream,CharsetEncoder)): Likewise. * java/io/InputStreamReader.java (InputStreamReader(InputStream,CharsetDecoder)): New constructor. (InputStreamReader(InputStream,Charset)): Likewise. * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try a BytesToCharsetAdaptor. * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try a CharsetToBytesAdaptor. * gnu/gcj/convert/CharsetToBytesAdaptor.java: New file. * gnu/gcj/convert/BytesToCharsetAdaptor.java: New file. * mauve-libgcj: Remove getEncoding exclusion. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r109294
2005-12-28natPlainSocketImplWin32.cc (connect): Same as previous patch, but for win32.Anthony Green2-3/+14
2005-12-28 Anthony Green <green@redhat.com> * gnu/java/net/natPlainSocketImplWin32.cc (connect): Same as previous patch, but for win32. From-SVN: r109119
2005-12-28natPlainSocketImplPosix.cc (connect): Record address and port before ↵Anthony Green2-3/+14
attempting anything. 2005-12-28 Anthony Green <green@redhat.com> * gnu/java/net/natPlainSocketImplPosix.cc (connect): Record address and port before attempting anything. From-SVN: r109116
2005-12-28[multiple changes]Anthony Green5-34/+32
2005-12-27 Tom Tromey <tromey@redhat.com> * gnu/java/nio/SelectorImpl.java: Added import. 2005-12-26 Anthony Green <green@redhat.com> * java/net/Socket.java (connect): Don't close the socket on exceptions. * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount of data to read (dst.remaining()). * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto. * gnu/java/nio/SelectorImpl.java (select): Handle OP_CONNECT properly. From-SVN: r109114
2005-12-28locks.h (compare_and_swap): Add ldcw semaphore to make operation atomic.John David Anglin2-15/+52
* sysdep/pa/locks.h (compare_and_swap): Add ldcw semaphore to make operation atomic. From-SVN: r109110
2005-12-22re PR java/25535 (gcj broken on 64-bit big-endian systems)Andrew Haley3-0/+11
2005-12-22 Andrew Haley <aph@redhat.com> PR java/25535 * testsuite/libjava.lang/PR25535.java: New test. From-SVN: r108961
2005-12-22natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS.Tom Tromey3-6/+6
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS. * include/jvm.h (NUM_OBJECT_METHODS): Removed. From-SVN: r108956
2005-12-19natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function.Anthony Green2-49/+47
2005-12-18 Anthony Green <green@redhat.com> * gnu/java/net/natPlainDatagramSocketImplPosix.cc (getLocalAddress): New helper function. (setOption): Use getLocalAddress. Don't downcast value to InetAddress. (getOption): Use getLocalAddress. From-SVN: r108779
2005-12-16Class.java (getPackage): Get package from VMClassLoader if needed.Tom Tromey2-3/+8
* java/lang/Class.java (getPackage): Get package from VMClassLoader if needed. From-SVN: r108685
2005-12-16* testsuite/libjava.jacks/jacks.xfailTom Tromey2-1/+5
(8.5.2-accessible-static-member-usage-3): Removed. From-SVN: r108656
2005-12-16re PR java/25429 (can't see private static final int CREATE = 1)Tom Tromey3-0/+31
gcc/java: PR java/25429 * parse.y (resolve_expression_name): Don't generate accessor methods for constant fields. libjava: * testsuite/libjava.compile/rh175833.java: New file. * testsuite/libjava.compile/pr25429.java: New file. Co-Authored-By: Andrew Haley <aph@redhat.com> From-SVN: r108608
2005-12-15libjava.exp: Revert 2005-12-01.Alan Modra3-6/+5
* testsuite/lib/libjava.exp: Revert 2005-12-01. * testsuite/libjava.lang/Array_3.xfail: Delete. From-SVN: r108563
2005-12-14CompilerProcess.java: Use a new thread to handle stdout from the child process.Andrew Haley2-4/+26
2005-12-14 Andrew Haley <aph@redhat.com> * gnu/java/rmi/rmic/CompilerProcess.java: Use a new thread to handle stdout from the child process. From-SVN: r108536
2005-12-14re PR classpath/25389 (File(new URI("file:./")) -> ↵Tom Tromey2-1/+11
java.lang.NullPointerException) PR classpath/25389: * java/io/File.java (File): Throw IllegalArgumentException if URI is non-hierarchical. From-SVN: r108528
2005-12-12VMCompiler.java: Directly generate a new instance of ↵Andrew Haley2-16/+17
gnu.java.security.provider.MD5. 2005-12-12 Andrew Haley <aph@redhat.com> * java/lang/VMCompiler.java: Directly generate a new instance of gnu.java.security.provider.MD5. From-SVN: r108421
2005-12-08re PR libgcj/25265 (linking BC-compiled classes with incompatible changes)Andrew Haley1-0/+1
2005-12-08 Andrew Haley <aph@redhat.com> PR libgcj/25265 * java-tree.h (enum java_tree_index): Add JTI_SOFT_NOSUCHFIELD_NODE. (soft_abstractmethod_node): New. * expr.c (build_field_ref): Add in-line check for missing field. * decl.c (java_init_decl_processing): Add soft_nosuchfield_node. 2005-12-08 Andrew Haley <aph@redhat.com> PR libgcj/25265 * java/lang/Object.h (throwNoSuchMethodError): New method. * java/lang/Object.java (throwNoSuchMethodError): New method. * include/jvm.h (_Jv_ThrowNoSuchFieldError): Declare. * link.cc (_Jv_ThrowNoSuchFieldError): New. (link_symbol_table): Don't throw a NoSuchFieldError if a field is missing. Instead, set the otable entry to zero. (link_symbol_table): If we don't find a nonstatic method, insert the vtable offset of Object.throwNoSuchMethodError() into the otable. From-SVN: r108235
2005-12-08Object.h (throwNoSuchMethodError): New method.Andrew Haley5-18/+85
2005-12-08 Andrew Haley <aph@redhat.com> * java/lang/Object.h (throwNoSuchMethodError): New method. * java/lang/Object.java (throwNoSuchMethodError): New method. * include/jvm.h (_Jv_ThrowNoSuchFieldError): Declare. * link.cc (_Jv_ThrowNoSuchFieldError): New. (link_symbol_table): Don't throw a NoSuchFieldError if a field is missing. Instead, set the otable entry to zero. (link_symbol_table): If we don't find a nonstatic method, insert the vtable offset of Object.throwNoSuchMethodError() into the otable. From-SVN: r108231
2005-12-06parse.y (patch_new_array_init): Don't set length on array.Tom Tromey2-0/+21
gcc/java: * parse.y (patch_new_array_init): Don't set length on array. libjava: * testsuite/libjava.compile/rh174912.java: New file. From-SVN: r108099
2005-12-01re PR bootstrap/25207 (bootstrap fails on libjava if alsa headers present ↵Anthony Green3-85/+212
but no -lasound.) 2005-12-01 Anthony Green <green@redhat.com> PR bootstrap/25207 * configure.ac: Make sure we have an alsa library in addition to the headers. This extra test is required for systems with multilibs. * configure: Rebuilt. From-SVN: r107828
2005-12-01libjava.exp (test_libjava_from_javac): Support xfail-byte-exec.Geoffrey Keating3-0/+12
* testsuite/lib/libjava.exp (test_libjava_from_javac): Support xfail-byte-exec. * testsuite/libjava.lang/Array_3.xfail: New file. From-SVN: r107811
2005-12-01stacktrace.cc (UnwindTraceFn): Use UNWRAP_FUNCTION_DESCRIPTOR to compare ↵Alan Modra2-5/+11
_Jv_InterpMethod::run against current... * stacktrace.cc (UnwindTraceFn): Use UNWRAP_FUNCTION_DESCRIPTOR to compare _Jv_InterpMethod::run against current func. From-SVN: r107746