aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2006-03-25re PR libgcj/26858 (NullPointerException not generated for large classes...)David Daney3-0/+2079
* testsuite/libjava.lang/PR26858.java: New test. * testsuite/libjava.lang/PR26858.out: Ditto. * testsuite/libjava.lang/PR26858.xfail: Ditto. From-SVN: r112374
2006-03-16jcf-write.c (generate_bytecode_insns): Use qualifying type for non-static ↵Tom Tromey1-1/+0
method calls. gcc/java * jcf-write.c (generate_bytecode_insns): Use qualifying type for non-static method calls. libjava * testsuite/libjava.jacks/jacks.xfail: Removed 13.1-runtime-method-5. From-SVN: r112102
2006-03-09win32.cc (_Jv_platform_nanotime): New function.Tom Tromey1-0/+4
* win32.cc (_Jv_platform_nanotime): New function. * include/win32.h (_Jv_platform_nanotime): Declare. * posix.cc (_Jv_platform_nanotime): New function. * include/posix.h (_Jv_platform_nanotime): Declare. * java/lang/natSystem.cc (nanoTime): New method. * java/lang/System.java (nanoTime): Declare. * include/config.h.in, configure: Rebuilt. * configure.ac: Check for clock_gettime. From-SVN: r111869
2006-03-01re PR libgcj/24321 (instanceof erroneously causes class initialization)Tom Tromey2-0/+23
PR java/24321: * testsuite/libjava.lang/pr24321.java: New file. * testsuite/libjava.lang/pr24321.out: New file. * java/lang/natClass.cc (isInstance): Don't initialize class. (isAssignableFrom): Likewise. From-SVN: r111603
2006-02-04re PR java/25676 (Use of MIN_EXPR/MAX_EXPR is wrong for java)Tom Tromey2-0/+14
gcc/java PR java/25676: * builtins.c (max_builtin): Skip floating point 'max'. (min_builtin): Skip floating point 'min'. (check_for_builtin): Never return NULL_TREE. libjava PR java/25676: * testsuite/libjava.lang/pr25676.out: New file. * testsuite/libjava.lang/pr25676.java: New file. From-SVN: r110599
2006-01-17Imported GNU Classpath 0.20Mark Wielaard1-0/+1
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
2005-12-22re PR java/25535 (gcj broken on 64-bit big-endian systems)Andrew Haley2-0/+6
2005-12-22 Andrew Haley <aph@redhat.com> PR java/25535 * testsuite/libjava.lang/PR25535.java: New test. From-SVN: r108961
2005-12-16* testsuite/libjava.jacks/jacks.xfailTom Tromey1-1/+0
(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 Tromey2-0/+26
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 Modra2-6/+0
* testsuite/lib/libjava.exp: Revert 2005-12-01. * testsuite/libjava.lang/Array_3.xfail: Delete. From-SVN: r108563
2005-12-06parse.y (patch_new_array_init): Don't set length on array.Tom Tromey1-0/+17
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-01libjava.exp (test_libjava_from_javac): Support xfail-byte-exec.Geoffrey Keating2-0/+6
* testsuite/lib/libjava.exp (test_libjava_from_javac): Support xfail-byte-exec. * testsuite/libjava.lang/Array_3.xfail: New file. From-SVN: r107811
2005-11-29re PR java/18278 (JNI functions cannot return a weak reference)Tom Tromey3-0/+25
gcc/java: PR java/18278: * expr.c (build_jni_stub): Unwrap the return value. * java-tree.h (soft_unwrapjni_node): New define. (enum java_tree_index): Added JTI_SOFT_UNWRAPJNI_NODE. * decl.c (java_init_decl_processing): Initialize soft_unwrapjni_node. libjava: PR java/18278: * testsuite/libjava.jni/pr18278.out: New file. * testsuite/libjava.jni/pr18278.c: New file. * testsuite/libjava.jni/pr18278.java: New file. * include/jvm.h (_Jv_UnwrapJNIweakReference): Declare. * jni.cc (_Jv_UnwrapJNIweakReference): New function. (call): Unwrap return value if needed. From-SVN: r107676
2005-11-25jacks.xfail: Remove non-jls-argument-expansion-13 and add ↵Ranjit Mathew1-1/+1
non-jls-argument-expansion-error-1... * testsuite/libjava.jacks/jacks.xfail: Remove non-jls-argument-expansion-13 and add non-jls-argument-expansion-error-1 in response to the @file support patch in the main GCC driver. From-SVN: r107506
2005-11-25ia64-frame.h: Removed.Bryce McKinlay1-2/+0
2005-11-24 Bryce McKinlay <mckinlay@redhat.com> * sysdep/ia64-frame.h: Removed. * sysdep/ia64.c: Removed. * sysdep/dwarf2-backtrace.cc: Removed. * configure.ac: Remove references to HAVE_BACKTRACE and SUPPLY_BACKTRACE. * Makefile.am: Remove SUPPLY_BACKTRACE support. * configure: Rebuilt. * Makefile.in: Rebuilt. From-SVN: r107486
2005-11-09jacks.xfail (non-jls-zip-2): Now passes.Tom Tromey1-1/+0
* testsuite/libjava.jacks/jacks.xfail (non-jls-zip-2): Now passes. From-SVN: r106702
2005-11-02libjava.exp (libjava_find_lib): Add dylib to the shared library extensions.Andreas Tobler1-1/+1
2005-11-02 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_find_lib): Add dylib to the shared library extensions. From-SVN: r106403
2005-10-10ExtraClassLoader.out: New file.Tom Tromey2-1/+4
* testsuite/libjava.lang/ExtraClassLoader.out: New file. * testsuite/libjava.lang/TestProxy.java (MyInvocationHandler): Now static. From-SVN: r105185
2005-10-02jni.exp (gcj_jni_test_one): For darwin, use -shared-libgcc not -lgcc_s, and ↵Andrew Pinski1-7/+12
explain why. 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu> * testsuite/lib/jni.exp (gcj_jni_test_one): For darwin, use -shared-libgcc not -lgcc_s, and explain why. (gcj_jni_invocation_test_one): Likewise. From-SVN: r104878
2005-09-27re PR libgcj/23367 (_Jv_FindMethodInCache is not thread-safe)Tom Tromey1-3/+4
PR libgcj/23367: * include/jvm.h (_Jv_FreeMethodCache): Declare. * java/lang/natClass.cc (MCACHE_SIZE): Conditional on HAVE_TLS. (struct _Jv_mcache): Likewise. (method_cache): Likewise. (_Jv_FindMethodInCache): Do nothing unless TLS is available. (_Jv_AddMethodToCache): Likewise. (_Jv_FreeMethodCache): New function. * java/lang/natThread.cc (finish_): Call _Jv_FreeMethodCache. * aclocal.m4, configure, include/config.h.in: Rebuilt. * configure.ac: Invoke GCC_CHECK_TLS. From-SVN: r104707
2005-09-27configure, [...]: Rebuilt.Tom Tromey1-0/+2
* configure, Makefile.in: Rebuilt. * sources.am: Rebuilt. * scripts/makemake.tcl (emit_bc_rule): Special-case qt. * configure.ac (TOOLKIT): Handle Qt peers properly. From-SVN: r104706
2005-09-21* testsuite/libjava.jacks/jacks.xfail: Updated for PR java/23891.Ranjit Mathew1-2/+4
From-SVN: r104486
2005-09-17jni.exp (gcj_jni_invocation_test_one): Use libjava_find_lib to find the ↵H.J. Lu1-1/+7
proper libgcj. 2005-09-17 H.J. Lu <hongjiu.lu@intel.com> * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Use libjava_find_lib to find the proper libgcj. From-SVN: r104370
2005-09-12re PR libgcj/23762 (java.library.path should default to value of environment ↵Thomas Fitzsimmons1-1/+2
variable specified by LTDL_SHLIBPATH_VAR) 2005-09-12 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/23762 * shlibpath.m4: New file. * configure.ac: If libltdl is being used call AC_LTDL_SHLIBPATH macro. * gnu/classpath/natSystemProperties.cc (insertSystemProperties) [USE_LTDL]: If it was not defined with -D set java.library.path to the value of LTDL_SHLIBPATH_VAR. From-SVN: r104198
2005-09-06re PR libgcj/23739 (JNI: IsAssignableFrom reverses arguments)Tom Tromey4-1/+38
PR libgcj/23739: * testsuite/libjava.jni/pr23739.c: New file. * testsuite/libjava.jni/pr23739.java: New file. * testsuite/libjava.jni/pr23739.out: New file. * jni.cc (_Jv_JNI_IsAssignableFrom): Reversed arguments. * java/lang/reflect/natMethod.cc (invoke): Updated. * java/lang/natClass.cc (isAssignableFrom): Updated. (isInstance): Likewise. (_Jv_IsAssignableFrom): Reversed arguments. (_Jv_IsInstanceOf): Updated. (_Jv_CheckCast): Likewise. (_Jv_CheckArrayStore): Likewise. (_Jv_IsAssignableFromSlow): Reversed arguments. (_Jv_InterfaceAssignableFrom): Likewise. * link.cc (verify_type_assertions): Updated. * prims.cc (_Jv_CheckAccess): Updated. From-SVN: r103953
2005-09-05Testsuite changes for PR java/23431.Ranjit Mathew5-2/+20
* testsuite/libjava.jacks/jacks.xfail: Remove 8.1.1.1-12 and 8.4.6.2-hiding-5. * testsuite/libjava.compile/PR23431_1.java: New testcase. * testsuite/libjava.compile/PR23431_2.java: Likewise. * testsuite/libjava.compile/PR23431_1.xfail: New file. * testsuite/libjava.compile/PR23431_2.xfail: Likewise. From-SVN: r103910
2005-08-22Makefile.am (ACLOCAL_AMFLAGS): Also include "..".Kelley Cook1-3/+3
2005-08-22 Kelley Cook <kcook@gcc.gnu.org> * Makefile.am (ACLOCAL_AMFLAGS): Also include "..". * acinclude.m4: Delete. Extract CHECK_FOR_BROKEN_MINGW_LD to ... * mingwld.m4: ... this new file. * aclocal.m4, Makefile.in, gcj/Makefile.in: Regenerate. * include/Makefile.in, testsuite/Makfile.in: Regenerate. From-SVN: r103361
2005-08-18Makefile.am (extra_ldflags_libjava): New variable to substitute in.Andrew Pinski1-1/+2
2005-08-19 Andrew Pinski <pinskia@physics.uc.edu> * Makefile.am (extra_ldflags_libjava): New variable to substitute in. (LIBLINK): Add extra_ldflags_libjava to it. * configure.ac (extra_ldflags_libjava): Set for *-darwin* to "-Wl,-single_module". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. From-SVN: r103265
2005-08-17class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' ↵Tom Tromey2-0/+12
initial state. gcc/java: * class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' initial state. libjava: * java/lang/Class.h (_Jv_IsBinaryCompatibilityABI): Declare as friend. * include/jvm.h (_Jv_IsBinaryCompatibilityABI): New function. * testsuite/libjava.lang/bclink.java: New file. * testsuite/libjava.lang/bclink.out: New file. * link.cc (print_class_loaded): Changed ABI test to look at various _syms fields. From-SVN: r103225
2005-08-17jacks.xfail: Remove 15.21-assoc-7, 15.21-assoc-8, 15.21-equal-3, ↵Andreas Tobler1-4/+0
15.28-string-11. 2005-08-17 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.jacks/jacks.xfail: Remove 15.21-assoc-7, 15.21-assoc-8, 15.21-equal-3, 15.28-string-11. From-SVN: r103205
2005-08-16More testsuite adjustments for PR java/19870.Ranjit Mathew3-1/+45
* testsuite/libjava.lang/PR19870_2.java: New testcase. * testsuite/libjava.lang/PR19870_2.out: Expected output for the new testcase. * testsuite/libjava.jacks/jacks.xfail: Remove 8.5.2-non-static-member-usage-2 and add 15.12.3-explicit-constructor-9. From-SVN: r103165
2005-07-18Makefile.in: Rebuilt.Tom Tromey1-3/+5
* Makefile.in: Rebuilt. * Makefile.am ($(libgij_la_OBJECTS)): Depend on headers.stamp. From-SVN: r102139
2005-07-16Major merge with Classpath.Tom Tromey2-9/+7
Removed many duplicate files. * HACKING: Updated.x * classpath: Imported new directory. * standard.omit: New file. * Makefile.in, aclocal.m4, configure: Rebuilt. * sources.am: New file. * configure.ac: Run Classpath configure script. Moved code around to support. Disable xlib AWT peers (temporarily). * Makefile.am (SUBDIRS): Added 'classpath' (JAVAC): Removed. (AM_CPPFLAGS): Added more -I options. (BOOTCLASSPATH): Simplified. Completely redid how sources are built. Include sources.am. * include/Makefile.am (tool_include__HEADERS): Removed jni.h. * include/jni.h: Removed (in Classpath). * scripts/classes.pl: Updated to look at built classes. * scripts/makemake.tcl: New file. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Added -I options. (gcj_jni_invocation_compile_c_to_binary): Likewise. From-SVN: r102082
2005-07-07re PR java/18119 (Private inner class is visible when it shouldn't be)Bryce McKinlay1-4/+0
2005-07-07 Bryce McKinlay <mckinlay@redhat.com> PR java/18119 * parse.y (inner_class_accessible): New function. Logic moved from check_inner_class_access. (check_inner_class_access): Use inner_class_accessible. (resolve_inner_class): Simplify arguments. Create circularity hash here. Keep looking for classes if we found one that was inaccessible. Return the inaccessible class only if there is no other match. (do_resolve_class): Update for new resolve_inner_class arguments. Don't create circularity_hash here. From-SVN: r101715
2005-07-07re PR java/21045 (Anonymous inner class constructor's exceptions can't be ↵Bryce McKinlay2-4/+11
caught or thrown) 2005-07-07 Bryce McKinlay <mckinlay@redhat.com> PR java/21045 * parse.y (add_exception_to_throws): New function. (purge_unchecked_exceptions): Removed. (get_constructor_super): Renamed from verify_constructor_super. Now returns the super constructor after verification. (java_complete_expand_method): Don't use purge_unchecked_exceptions or save/restore the exception list. (check_thrown_exceptions): Add uncaught exceptions in anonymous class initializers and constructors to the throws clause of the method. 2005-07-07 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR21045.java: New test. * testsuite/libjava.jacks/jacks.xfail: Remove 15.9.5.1-exception-1, 15.9.5.1-exception-3, 8.3.2-abrupt-6, 8.3.2-abrupt-7. From-SVN: r101713
2005-07-06* testsuite/libjava.jacks/jacks.xfail: Removed 9.1.3-body-5.Tom Tromey1-1/+0
From-SVN: r101657
2005-07-05re PR java/19674 (Empty declaration through semicolon (;) causes compile ↵Bryce McKinlay1-0/+7
failure) 2005-07-05 Bryce McKinlay <mckinlay@redhat.com> PR java/19674 * parse.y (interface_member_declaration): Allow empty statements in interface declarations. 2005-07-05 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR19674.java: New test. From-SVN: r101634
2005-06-29re PR libgcj/22211 ([4.0 only] Thread.interrupt sometimes causes abort if ↵Tom Tromey1-0/+8
thread is already dead) PR libgcj/22211: * testsuite/libjava.lang/pr22211.java: New file. * java/lang/natThread.cc (finish_): Synchronize when updating alive_flag. (_Jv_AttachCurrentThread): Likewise. (interrupt): Only call _Jv_ThreadInterrupt if thread is alive. * java/lang/Thread.java (isAlive): Now synchronized. From-SVN: r101430
2005-06-27PR java/21540, PR java/13788:Tom Tromey3-19/+23
gcc/java/: PR java/21540, PR java/13788: * parse.y (java_complete_lhs) <CASE_EXPR>: Use fold_constant_for_init. (patch_binop): Added 'folding' argument. Updated all callers. (patch_unaryop) <NOP_EXPR>: New case. (fold_constant_for_init) <NOP_EXPR>: Likewise. (fold_constant_for_init) <COND_EXPR>: Fix sense of test. libjava/: PR java/21540, PR java/13788: * testsuite/libjava.compile/pr21540.java: New file. * testsuite/libjava.compile/pr13788.java: New file. * testsuite/libjava.jacks/jacks.xfail: Updated. From-SVN: r101358
2005-06-26xfails: Updated to reflect current state of mauve and libjava.Andreas Tobler1-144/+0
2005-06-26 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.mauve/xfails: Updated to reflect current state of mauve and libjava. From-SVN: r101337
2005-06-23re PR java/20697 (Invalid Can't find method error on call to super)Bryce McKinlay1-0/+29
PR java/20697 * parse.y (find_most_specific_methods_list): Remove special case for inner classes. From-SVN: r101270
2005-06-16configure.ac (USING_ECOS_PLATFORM): Remove and merge into...Kelley Cook1-2/+0
2005-06-15 Kelley Cook <kcook@gcc.gnu.org> * configure.ac (USING_ECOS_PLATFORM): Remove and merge into... (USING_POSIX_PLATFORM): ... here. * Makefile.am: Delete USING_ECOS_PLATFORM. * configure, Makefile.in, include/Makefile.in, testsuite/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in, gcj/Makefile.in: Regenerate. From-SVN: r101005
2005-06-15re PR libgcj/17536 (wrong ClassLoader for int[])Tom Tromey2-0/+6
PR libgcj/17536: * testsuite/libjava.lang/pr17536.java: New file. * testsuite/libjava.lang/pr17536.out: New file. From-SVN: r100999
2005-06-14re PR libgcj/19877 (sometimes reconfiguring leads to incorrect config.h)Tom Tromey1-0/+2
config/: PR libgcj/19877: * no-executables.m4: Call real AC_FUNC_MMAP when cache variable is set but not 'no'. libstdc++-v3/: PR libgcj/19877: * configure, aclocal.m4: Rebuilt. * Makefile.in, include/Makefile.in, libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in, testsuite/Makefile.in: Likewise. libjava/: PR libgcj/19877: * configure, aclocal.m4, Makefile.in: Rebuilt. libgfortran/: PR libgcj/19877: * configure, aclocal.m4, Makefile.in: Rebuilt. zlib/: PR libgcj/19877: * configure, aclocal.m4, Makefile.in: Rebuilt. From-SVN: r100953
2005-06-13re PR java/21844 (miscompilation of LinkedHashMap)Tom Tromey2-0/+34
PR java/21844: * testsuite/libjava.lang/pr21844.java: New file. * testsuite/libjava.lang/pr21844.out: New file. From-SVN: r100894
2005-06-02jawt.c: Remove malloc.h, covered by stdlib.h.Andreas Tobler1-1/+1
2005-06-03 Andreas Tobler <a.tobler@schweiz.ch> * jawt.c: Remove malloc.h, covered by stdlib.h. * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_compile_c_to_binary): Add -bind_at_load to silence the build process. From-SVN: r100504
2005-06-01re PR libgcj/21785 (ClassNotFound during deserialization)Tom Tromey2-0/+21
PR libgcj/21785: * java/io/natObjectInputStream.cc (currentClassLoader): Removed. (currentLoader): New method. * java/io/ObjectInputStream.java (resolveProxyClass): Use currentLoader. (currentLoader): Now native. (currentClassLoader): Removed. * testsuite/libjava.lang/pr21785.java: New file. * testsuite/libjava.lang/pr21785.out: New file. From-SVN: r100462
2005-05-27Testsuite adjustments for PR java/19870.Ranjit Mathew3-0/+54
* testsuite/libjava.lang/PR19870.java: New testcase. * testsuite/libjava.lang/PR19870.out: Expected output for the testcase. * testsuite/libjava.jacks/jacks.xfail: Add 8.5.2-accessible-static-member-usage-3 and 15.8.4-static-2 From-SVN: r100245
2005-05-21* testsuite/libjava.jacks/jacks.xfail: Remove 3.10.2-round-6.Ranjit Mathew1-1/+0
From-SVN: r100044
2005-05-18configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.Kelley Cook1-2/+1
2005-05-17 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF. * aclocal.m4, configure, config.h.in, include/config.h.in, Makefile.in, include/Makefile.in, testsuite/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in, gcj/Makefile.in: Regenerate. From-SVN: r99880