Commit Graph

195 Commits

Author SHA1 Message Date
Tom Tromey
26356fee5b iface.java: New file.
* libjava.compile/iface.java: New file.
	* libjava.compile/static_3.java: New file.
	* libjava.compile/static_2.java: New file.
	* libjava.compile/static_1.xfail: New file.
	* libjava.compile/static_1.java: New file.
	* libjava.compile/redef6.xfail: New file.
	* libjava.compile/redef6.java: New file.
	* libjava.compile/redef5.xfail: New file.
	* libjava.compile/redef5.java: New file.
	* libjava.compile/redef4.xfail: New file.
	* libjava.compile/redef4.java: New file.
	* libjava.compile/redef3.xfail: New file.
	* libjava.compile/redef3.java: New file.
	* libjava.compile/redef2.xfail: New file.
	* libjava.compile/redef2.java: New file.
	* libjava.compile/redef1.xfail: New file.
	* libjava.compile/redef1.java: New file.
	* libjava.compile/not_a_redef.java: New file.
	* libjava.compile/inner_1.java: New file.
	* libjava.compile/static_init.xfail: New file.
	* libjava.compile/static_init.java: New file.

From-SVN: r32688
2000-03-22 21:25:21 +00:00
Bryce McKinlay
2ca2f317e2 Test case for PR libgcj/179:
2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>

        Test case for PR libgcj/179:
        * libjava.lang/pr179.java: New file.
        * libjava.lang/pr179.out: New file.

From-SVN: r32662
2000-03-21 04:55:43 +00:00
Tom Tromey
6264c3956f * libjava.lang/pr109.java: Added `println' at end.
From-SVN: r32627
2000-03-19 04:35:24 +00:00
Tom Tromey
beca355843 * libjava.compile/pr176.java: New file, for PR gcj/176.
From-SVN: r32561
2000-03-15 16:36:44 +00:00
Bryce McKinlay
25ceeb830e * libjava.compile/PR140.xfail: New file.
From-SVN: r32553
2000-03-15 03:23:04 +00:00
Bryce McKinlay
37ce3e058d pr172.java: Correct classname to match file name.
2000-03-15  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.compile/pr172.java: Correct classname to match file name.
        * libjava.compile/pr174.java: ditto. Remove superfluous main()
        method.

From-SVN: r32552
2000-03-15 03:14:24 +00:00
Tom Tromey
87ee36a8d9 * libjava.compile/PR140.java: New file, for PR gcj/140.
From-SVN: r32551
2000-03-15 01:45:10 +00:00
Tom Tromey
199504d153 * libjava.compile/pr172.java: New file, for PR gcj/172.
From-SVN: r32539
2000-03-14 18:37:18 +00:00
Tom Tromey
4bdf01f210 * libjava.compile/pr174.java: New file, for PR gcj/174.
From-SVN: r32537
2000-03-14 18:35:02 +00:00
Tom Tromey
0b3f0ff85e re GNATS gcj/162 (gcj does not initialize interfaces according to spec)
* libjava.lang/PR162.java: Mention `PR162', not `Test', as class
	name.

From-SVN: r32408
2000-03-08 05:42:07 +00:00
Bryce McKinlay
28c231d647 Test for PR gcj/163:
2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>

        Test for PR gcj/163:
        * libjava.lang/PR163.java: New file.
        * libjava.lang/PR163.xfail: New file.

From-SVN: r32393
2000-03-07 22:54:12 +00:00
Tom Tromey
c7ce272aa5 libjava.exp (test_libjava_from_javac): Removed hack for interfaces.
* lib/libjava.exp (test_libjava_from_javac): Removed hack for
	interfaces.  Fail if jv-scan reports a parse error.

From-SVN: r32392
2000-03-07 22:44:22 +00:00
Tom Tromey
2ba5f77454 All files: Updated copyright information.
* All files: Updated copyright information.
	* COPYING: New file.
	* COPYING.LIB: Removed.
	* LIBGCJ_LICENSE: We now use GPL + special exception.

From-SVN: r32387
2000-03-07 19:55:28 +00:00
Tom Tromey
8c214df6d3 Test for PR gcj/162:
* libjava.lang/PR162.out: New file.
	* libjava.lang/PR162.java: New file.

From-SVN: r32384
2000-03-07 18:06:31 +00:00
Tom Tromey
1c30539d66 Test for PR gcj/164:
* libjava.compile/PR164.xfail: New file.
	* libjava.compile/PR164.java: New file.

From-SVN: r32374
2000-03-07 00:49:18 +00:00
Bryce McKinlay
4dfc2930e4 * libjava.compile/PR127.xfail: New file.
From-SVN: r32357
2000-03-06 10:45:02 +00:00
Bryce McKinlay
2d5049639b re GNATS gcj/127 (gcj dumps core on method invocation on a primitive type)
2000-03-06  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.compile/PR127.java: New file.
        PR 127 test case from Joerg Brunsmann.

From-SVN: r32356
2000-03-06 10:25:53 +00:00
Tom Tromey
fc159ae11b re GNATS gcj/124 (protected constructor for InvocationTargetException still visible)
* lib/libjava.exp (test_libjava): Document `shouldfail' token.
	(test_libjava_from_source): Handle `shouldfail' case.
	(test_libjava_from_javac): Likewise.

	Test for PR libgcj/124:
	* libjava.compile/PR124.java: New file.
	* libjava.compile/PR124.xfail: New file.

From-SVN: r32353
2000-03-06 06:05:02 +00:00
Anthony Green
8cf870df7b re GNATS java.io/141 (StreamTokenizer doesn't scan mixed token types correctly)
2000-03-05  Anthony Green  <green@redhat.com>

        * libjava.lang/PR141.java: New file.
        * libjava.lang/PR141.out: New file.
	For PR java.io/141.

From-SVN: r32352
2000-03-06 03:48:33 +00:00
Anthony Green
6cc964322f configure.host: Fix __NO_MATH_INLNES botch.
* configure.host: Fix __NO_MATH_INLNES botch.

	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Move natFirstThread.cc.
	(gnu/gcj/runtime/FirstThread.h): Moved.
	(ordinary_java_source_files): Move FirstThread.java.
	* prims.cc: Deal with FirstThread movement.
	(JvRunMain): Ditto.
	(_Jv_RunMain): Ditto.

	* gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
	* gnu/gcj/runtime/natFirstThread.cc: Ditto.

From-SVN: r32348
2000-03-05 22:26:30 +00:00
Anthony Green
18ca9ce723 re GNATS gcj/129 (Static array length access bug in gcj)
* libjava.compile/PR129_B.java: New file.
	* libjava.compile/support/PR129_A.java: New file.
	For PR gcj/129.

From-SVN: r32340
2000-03-05 09:07:27 +00:00
Anthony Green
da1ee10da1 New test code.
From-SVN: r32336
2000-03-05 07:25:14 +00:00
Mo DeJong
73bb4fe42a static_inner.java: New file.
2000-02-28  Mo DeJong <mdejong@cygnus.com>

	* libjava.compile/static_inner.java: New file.

From-SVN: r32250
2000-02-29 04:18:35 +00:00
Tom Tromey
a51c1a1a0a noclass.c: New file.
* libjava.jni/noclass.c: New file.
	* libjava.jni/noclass.out: New file.
	* libjava.jni/noclass.java: New file.

From-SVN: r32226
2000-02-27 21:42:40 +00:00
Tom Tromey
31e890f0f3 register.java: New file.
* libjava.jni/register.java: New file.
	* libjava.jni/register.c: New file.
	* libjava.jni/register.out: New file.

From-SVN: r32055
2000-02-18 21:15:32 +00:00
Tom Tromey
c082d01fa9 calls.c: New file.
* libjava.jni/calls.c: New file.
	* libjava.jni/calls.out: New file.
	* libjava.jni/calls.java: New file.

From-SVN: r32020
2000-02-17 00:49:27 +00:00
Tom Tromey
5b0d59b4e7 throwit.java: New file.
* libjava.jni/throwit.java: New file.
	* libjava.jni/throwit.c: New file.
	* libjava.jni/throwit.out: New file.

From-SVN: r32016
2000-02-16 22:39:36 +00:00
Tom Tromey
5bdd3ac1ea findclass.java: New file
* libjava.jni/findclass.java: New file
	* libjava.jni/findclass.c: New file
	* libjava.jni/findclass.out: New file

From-SVN: r32012
2000-02-16 18:41:28 +00:00
Tom Tromey
04297fe74f findclass.java: New file
* libjava.jni/findclass.java: New file
	* libjava.jni/findclass.c: New file
	* libjava.jni/findclass.out: New file

From-SVN: r32011
2000-02-16 18:35:05 +00:00
Bryce McKinlay
432ba90f48 InterfaceDispatch.java: New file.
2000-02-16  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.lang/InterfaceDispatch.java: New file.
        * libjava.lang/InterfaceDispatch.out: New file.

From-SVN: r32001
2000-02-16 05:13:46 +00:00
Tom Tromey
73d7c68909 virtual.java: New file.
* libjava.jni/virtual.java: New file.
	* libjava.jni/virtual.c: New file.
	* libjava.jni/virtual.out: New file.
	* libjava.jni/final_method.java: New file.
	* libjava.jni/final_method.c: New file.
	* libjava.jni/final_method.out: New file.
	* libjava.jni/overload.java: New file.
	* libjava.jni/overload.c: New file.
	* libjava.jni/overload.out: New file.
	* libjava.jni/simple_int.java: New file.
	* libjava.jni/simple_int.c: New file.
	* libjava.jni/simple_int.out: New file.
	* libjava.jni/invoke.out: New file.
	* libjava.jni/invoke.c: New file.
	* libjava.jni/invoke.java: New file.

From-SVN: r31996
2000-02-16 00:19:55 +00:00
Anthony Green
6ab17fd868 New test code.
From-SVN: r31952
2000-02-12 23:43:51 +00:00
Anthony Green
addcdfec59 New test case.
From-SVN: r31951
2000-02-12 23:09:34 +00:00
Anthony Green
762016bf0a New test case.
From-SVN: r31950
2000-02-12 22:57:18 +00:00
Anthony Green
d6455b5baf New test case.
From-SVN: r31949
2000-02-12 22:45:06 +00:00
Alexandre Petit-Bianco
e35b951f52 inner_interface.out: New file.
2000-02-12  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* libjava.lang/inner_interface.out: New file.
	* libjava.lang/inner_interface.java: New file.
	* libjava.lang/final_int.out: New file.
	* libjava.lang/final_int.java: New file.
	* libjava.lang/final_static_and_friend.out: New file.
	* libjava.lang/final_static_and_friend.java: New file.

From-SVN: r31944
2000-02-12 18:34:50 +00:00
Alexandre Petit-Bianco
d53cc71518 anonarray3.out: New file.
2000-02-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* libjava.lang/anonarray3.out: New file.
	* libjava.lang/anonarray3.java: New file.

From-SVN: r31871
2000-02-09 20:49:34 +00:00
Tom Tromey
d38c8dab70 * libjava.compile/inner_priv.java: New file.
From-SVN: r31868
2000-02-09 20:33:33 +00:00
Alexandre Petit-Bianco
de9127c1b7 instinit2.out: New file.
* libjava.lang/instinit2.out: New file.
	* libjava.lang/instinit2.java: New file.
	* libjava.lang/instinit.out: New file.
	* libjava.lang/instinit.java: New file.
	* libjava.lang/anonarray2.out: New file.
	* libjava.lang/anonarray2.java: New file.
	* libjava.lang/anonarray.out: New file.
	* libjava.lang/anonarray.java: New file.
	* libjava.lang/nested_with_ctor.out: New file.
	* libjava.lang/nested_with_ctor.java: New file.
	* libjava.lang/anfi.out: New file.
	* libjava.lang/anfi.java: New file.
	* libjava.lang/stub.out: New file.
	* libjava.lang/stub.java: New file.

From-SVN: r31841
2000-02-07 21:40:18 +00:00
Alexandre Petit-Bianco
33ebdd95a8 final_inner.java: New file.
* libjava.lang/final_inner.java: New file.
	* libjava.lang/final_inner.out: Likewise.

From-SVN: r31704
2000-01-30 22:08:32 +00:00
Tom Tromey
24823dcf49 * libjava.compile/BlankFinal.java: New file.
From-SVN: r31552
2000-01-21 21:12:47 +00:00
Alexandre Petit-Bianco
5170877a05 anon.java, [...]: New files.
2000-01-19  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* libjava.lang/anon.java, libjava.lang/anon2.java,
	libjava.lang/anon3.java, libjava.lang/anon4.java,
	libjava.lang/direct_read.java, libjava.lang/direct_write.java,
	libjava.lang/indirect.java, libjava.lang/indirect_read.java,
	libjava.lang/indirect_write.java, libjava.lang/inner1.java,
	libjava.lang/inner2.java, libjava.lang/inner3.java,
	libjava.lang/inner4.java, libjava.lang/inner_array.java,
	libjava.lang/multiple_finit.java,
	libjava.lang/private_direct_read.java,
	libjava.lang/private_direct_write.java,
	libjava.lang/private_indirect_read.java,
	libjava.lang/private_indirect_write.java,
	libjava.lang/search_outer.java, libjava.lang/tmi.java,
	libjava.lang/tp.java, libjava.lang/update_outer.java: New files.

From-SVN: r31511
2000-01-19 21:38:43 +00:00
Tom Tromey
7c734b1758 * All files: Updated copyright to reflect Cygnus purchase.
From-SVN: r31504
2000-01-19 18:39:27 +00:00
Tom Tromey
ec39b14af2 * libjava.compile/inner_pub.java: New file.
From-SVN: r31503
2000-01-19 17:28:32 +00:00
Tom Tromey
7af8555855 Runtime.java (loadLibraryInternal): Declare.
* java/lang/Runtime.java (loadLibraryInternal): Declare.
	* java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
	(_Jv_FindClassInCache): Likewise.
	(_Jv_FindClass): Don't conditionalize body on INTERPRETER.
	(findSystemClass): Try to load class from compiled module.
	Include Runtime.h.
	* java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
	(loadLibrary): Likewise.
	(lt_preloaded_symbols): Define.
	(loadLibraryInternal): New method.
	* include/config.h.in: Rebuilt.
	* acconfig.h (USE_LTDL): Added.
	* Makefile.am (SUBDIRS): Added $(DIRLTDL).
	(INCLUDES): Added $(INCLTDL).b
	(libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
	(libgcj_la_LIBADD): Likewise.
	* aclocal.m4, configure: Rebuilt.
	* configure.in: Added libltdl support.

From-SVN: r31472
2000-01-17 19:22:20 +00:00
Anthony Green
ed4c3661d5 *** empty log message ***
From-SVN: r31448
2000-01-16 21:01:25 +00:00
Anthony Green
31fcb1b9a9 pr83.out: New file.
* libjava.lang/pr83.out: New file.
	* libjava.lang/pr83.java: New file.

	* libjava.lang/pr109.out: New file.
	* libjava.lang/pr109.java: New file.

From-SVN: r31446
2000-01-16 19:55:09 +00:00
Tom Tromey
b5fba37d0f klass.out: New file.
* libjava.lang/klass.out: New file.
	* libjava.lang/klass.java: New file.

From-SVN: r31333
2000-01-11 18:58:49 +00:00
Tom Tromey
0f918fea8b [multiple changes]
2000-01-04  Tom Tromey  <tromey@cygnus.com>

	* java/lang/reflect/natConstructor.cc (newInstance): Pass
	declaring class as return_type argument to
	_Jv_CallNonvirtualMethodA.
	* java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
	constructor case, create object and use it as `this' argument.
	* java/lang/Class.h (_getConstructors): Declare.
	(_getFields): Declare.
	* java/lang/Class.java (getConstructors): Wrote.
	(_getConstructors): New native method.
	(getDeclaredConstructors): Wrote.
	(_getFields): Declare new native method.
	* java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
	incorrect comment.
	(getMethod): Work correctly when class is primitive.
	(getDeclaredMethods): Likewise.  Compute offset using `method',
	not `mptr'.
	(getDeclaredMethod): Likewise.
	(getConstructor): Wrote.
	(ConstructorClass): New define.
	(getDeclaredConstructor): Wrote.
	(_getConstructors): New method.
	(_getFields): New method.
	(getFields): Wrote.

	* Makefile.in: Rebuilt.
	* Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.

	* prims.cc: Remove `#pragma implementation'.
	* gcj/array.h: Remove `#pragma interface'.

	* prims.cc (_Jv_equaln): New function.
	* java/lang/Class.java (getSignature): Declare.
	* resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
	* java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
	resolve.cc.
	(getSignature): New method.
	(getDeclaredMethod): Wrote.
	(getMethod): Wrote.
	Include StringBuffer.h.
	* java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
	as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
	a friend.
	(getSignature): Declare.
	* include/jvm.h (_Jv_GetTypesFromSignature): Declare.
	(_Jv_equaln): Declare.
	(_Jv_CallNonvirtualMethodA): Declare.
	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Added natConstructor.cc.
	(java/lang/reflect/Constructor.h): New target.
	* java/lang/reflect/natConstructor.cc: New file.
	* java/lang/reflect/Constructor.java (newInstance): Now native.
	(declaringClass): Renamed from decl_class.
	(offset): Renamed from index.
	(getType): New native method.
	(getModifiers): Now native.
	(getParameterTypes): Call getType if required.
	(hashCode): Include hash code from declaring class.
	(modifiers): Removed.
	(toString): Call getType if required.
	* gcj/method.h (_Jv_FromReflectedConstructor): New function.
	* java/lang/reflect/natMethod.cc (hack_call): New method.
	Removed `#if 0' around FFI code.
	Include <gnu/gcj/RawData.h>.
	(invoke): Use _Jv_CallNonvirtualMethodA.  Throw
	IllegalArgumentException when argument object and class disagree.
	(_Jv_GetTypesFromSignature): New function.
	(getType): Use it.
	(ObjectClass): New define.
	(_Jv_CallNonvirtualMethodA): New function.
	* java/lang/reflect/Method.java (hack_trampoline): New method.
	(hack_call): New native method.

1999-12-21  Per Bothner  <per@bothner.com>

	* java/lang/natClass.cc (getDeclaredMethods): Correctly compute
	offset in new Method.

From-SVN: r31199
2000-01-04 08:46:52 +00:00
Tom Tromey
f540ec2448 mauve.exp (mauve_compute_uses): Let user select specific tests to run.
* libjava.mauve/mauve.exp (mauve_compute_uses): Let user select
	specific tests to run.

From-SVN: r31183
2000-01-03 20:18:19 +00:00
Tom Tromey
3cf88fb4e8 sjlj jumbo patch
From-SVN: r30591
1999-11-19 19:13:42 +00:00
Bryce McKinlay
921150153a Test code for GNATS gcj/71 and GNATS gcj/72.
1999-10-19  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.compile/invokeinterface: New directory.
        * libjava.compile/invokeinterface/Test.java: New file. Test code for
        PR gcj/71 and PR gcj/72.
        * libjava.compile/invokeinterface/A.java: New file.
        * libjava.compile/invokeinterface/B.java: New file.

From-SVN: r30094
1999-10-20 01:09:33 +01:00
Anthony Green
aedf9aa78c Fix changelog entry
From-SVN: r29791
1999-10-04 03:44:07 +00:00
Anthony Green
0d9cd062a0 A little clean up.
From-SVN: r29790
1999-10-04 03:30:54 +00:00
Tom Tromey
edf4b387c0 re GNATS gcj/56 (gcj segfaults in jc1 on OK java file)
* libjava.lang/PR56.out: New file.
	* libjava.lang/PR56.java: New file.

From-SVN: r29760
1999-10-02 00:39:04 +00:00
Tom Tromey
2450ddbbda re GNATS gcj/55 (jc1 dies on implicit String conversion)
* libjava.lang/PR55.out: New file.
	* libjava.lang/PR55.java: New file.

From-SVN: r29714
1999-09-29 23:10:11 +00:00
Tom Tromey
bc5afba452 posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
* include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
	(_Jv_PthreadGetMutex): Use it.
	(_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
	(_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
	(_Jv_MutexLock): Likewise.
	(_Jv_MutexUnlock): Likewise.
	* include/config.h.in: Rebuilt.
	* acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
	PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
	* configure: Rebuilt.
	* libgcj.spec.in: Don't mention INTERPSPEC.
	* configure.in (INTERPSPEC): Removed.
	Only run pthreads-related checks when using POSIX threads.  Check
	for m_count and __m_count in mutex structure.

From-SVN: r29048
1999-09-02 06:27:00 +00:00
Tom Tromey
95c5608516 G19990304_01.out: New file.
* libjava.toshiba/G19990304_01.out: New file.
	* libjava.toshiba/G19990304_01.java: New file.

From-SVN: r28870
1999-08-25 18:38:58 +00:00
Tom Tromey
3d31bc7f58 G19990310_01.out: New file.
* libjava.lang/G19990310_01.out: New file.
	* libjava.lang/G19990310_01.java: New file.

From-SVN: r28865
1999-08-25 17:54:55 +00:00
Kresten Krab Thorup
eb4534a636 natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from _Jv_InternClassStrings.
* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
	from _Jv_InternClassStrings.

	* prims.cc (_Jv_RunMain): New function.
	(JvRunMain): Remove gij-support.

	* gij.cc (main): Use _Jv_RunMain.

	* java/util/zip/ZipFile.java: Call readDirectory in constructor.

	* interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
	argument in temp variable.
	(continue1): For all op_x2y insns, use temp variable for
	intermediate value.  Also remove some comments.

	* java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
	(forName): Don't call _Jv_InitClass.

	* java/lang/Class.java (getResource,getResourceAsStream): Implement.

	* java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.

	* java/util/jar/JarInputStream.java: New file.

	* java/util/jar/JarEntry.java: New file.

	* java/util/jar/JarFile.java: New file.

	* java/net/URLClassLoader.java: New file.

	* java/net/JarURLConnection.java: New file.

	* gnu/gcj/protocol/jar/Handler.java: New file.

	* gnu/gcj/protocol/jar/Connection.java: New file.

	* java/security/SecureClassLoader.java: New file.

	* java/lang/ClassLoader.java (parent): New variable.
	(ClassLoader (ClassLoader)): new constructor.
	(findClass): New method.
	(loadClass): Add default 1.2 implementation.
	(getSystemResourceAsBytes, getResourceAsBytes): Removed.
	(readfully): Removed.

	* gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
	(findSystemClass): New method.
	(VMClassLoader): Constructor rewritten.
	(init): New method.
	All other methods removed.

	* java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
	to gnu::gcj::runtime::VMClassLoader.
	(_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
	class entries.
	(VMClassLoader::findSystemClass): renamed from findBootClass.

	* Makefile.am: Add new files.
	(FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.

	* Makefile.in: Rebuilt.

From-SVN: r28748
1999-08-18 14:16:42 +00:00
Tom Tromey
db4b04f1f4 From Bryce McKinlay:
* libjava.lang/Array_2.java: New file.
	* libjava.lang/Array_2.out: New file.

From-SVN: r28737
1999-08-17 22:05:56 +00:00
Anthony Green
b3967ec43e Primes.java: New file.
* libjava.lang/Primes.java: New file.
	* libjava.lang/Primes.out: New file.

From-SVN: r28613
1999-08-09 06:35:56 +00:00
Anthony Green
58eb6e7cef [multiple changes]
1999-08-09  Anthony Green  <green@cygnus.com>

        * gij.cc: New file.

        * include/config.h.in: Rebuilt.
        * acconfig.h: Add INTERPRETER.

        * configure: Rebuilt.

        * Makefile.in: Rebuilt.
        * Makefile.am (libffi_files): Identify the libffi object files for
        inclusion in libgcj.
        (LIBFFIINCS): Define.

        * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
        Dummy definition for configurations without an interpreter.

        * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
        java::lang::Boolean constructor.

        * include/java-interp.h: Always include java-cpool.h.

        * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
        when INTERPRETER not defined.

        * java/lang/Class.h (finalize): Define.

        * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
        IOException from File.getCanonicalPath.
        (getStream): Likewise.

        * NEWS: More news.
        * THANKS: More thanks.

1999-08-09  Kresten Krab Thorup  <krab@gnu.org>

        * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
        jchar type.
        (_Jv_PrepareClass): Allow non-abstract classes to
        have abstract subclasses.
        (_Jv_ResolvePoolEntry): Revert subclass check for protected
        fields and methods.
        * interpret.cc (continue1/perform_invoke): Don't sign extend
        uint16 return val.
        (continue1/lshl,lshr): Push long, not int.
        (continue1/ulshr): Use UINT64, not long long.
        * defineclass.cc (handleFieldsEnd): Handle case when all fields
        are static.
        * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
        * java/lang/FirstThread.java (run): Add top-level exception
        handler.
        (run0): Renamed from run.

1999-08-08  Kresten Krab Thorup  <krab@gnu.org>

        * configure.in (--with-interpreter): Added.
        * include/config.h.in (INTERPRETER): Added.

        * java/lang/ClassLoader.java: File replaced.
        * java/lang/VMClassLoader.java: New file.
        * java/lang/natClassLoader.cc: New file.
        * gnu/gcj/runtime/MethodInvocation.java: New file.
        * gnu/gcj/util/path/SearchPath.java: New file.
        * gnu/gcj/util/path/PathEntry.java: New file.
        * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
        * gnu/gcj/util/path/ZipPathEntry.java: New file.
        * gnu/gcj/util/path/URLPathEntry.java: New file.
        * gnu/gcj/util/path/CacheEntry.java: New file.
        * include/java-interp.h: New file.
        * include/java-cpool.h: New file.
        * include/java-insns.h: New file.
        * defineclass.cc: New file.
        * interpret.cc: New file.
        * resolve.cc: New file.

        * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
        _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
        _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
        (finalize): New.
        (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
        STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
        prefix.
        (initializeClass): Use new JV_ prefixed names.  Also, call
        ClassLoader::resolveClass instead of _Jv_ResolveClass.

        * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
        JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
        JV_STATE_LINKED): New.
        (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
        _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
        (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
        _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
        _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
        _Jv_InterpMethodInvocation): New friends for interpreter.
        (finalize): New.
        (CONSTANT_Class, CONSTANT_String, etc.): Moved to
        include/java-cpool.h and renamed with JV_ prefix.

        * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
        decls.
        (_Jv_UnregisterClass): New decl.

        * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
        class loader argument.
        (_Jv_FindClass): Use class loader.

        * prims.cc (_Jv_makeUtf8Const): New function.
        (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
        (_Jv_NewPrimArray): Ditto.
        (_Jv_FindClassFromSignature): Ditto.
        * java/lang/reflect/natArray.cc (newInstance): Ditto.
        * java/lang/reflect/natMethod.cc (getType): Ditto.

        * include/java-field.h (_Jv_Field::isRef): Make robust for
        non-resolved contexts.

        * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
        Also, don't mark class->next field.

        * java/lang/VirtualMachineError.java: Added FIXME note.

        * configure.in (INTERPSPEC): New spec.
        * libgcj.spec.in: Added INTERPSPEC.
        * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
        gnu/gcj/runtime/MethodInvocation.
        (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
        (ordinary_java_source_files): Added above mentioned java classes.

        * configure: Rebuilt.
        * Makefile.in: Rebuilt.

From-SVN: r28597
1999-08-08 14:06:23 +00:00
Tom Tromey
5b9bbb3917 aclocal.m4, configure: Rebuilt for new libtool.
* aclocal.m4, configure: Rebuilt for new libtool.

[[Split portion of a mixed commit.]]

From-SVN: r28435.2
1999-08-03 03:07:04 +00:00
Alexandre Oliva
5f67f48f90 libjava.exp (bytecompile_file): Use `env(SUN_JAVAC)', that defaults to javac, as Sun-javac compiler or compatible.
1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* lib/libjava.exp (bytecompile_file): Use `env(SUN_JAVAC)', that
	defaults to javac, as Sun-javac compiler or compatible.
	(libjava_init): Get GCJ from environment if neither GCJ_UNDER_TEST
	nor TOOL_EXECUTABLE are set.  Set `original_ld_library_path' from
	environment.
	(libjava_arguments): Prepend `.' and `$srcdir/$subdir' to
	CLASSPATH, for `support' sources.  Search for libgcj.spec in
	`$objdir/..', by adding -B to GCJ_UNDER_TEST.  Append
	original_ld_library_path to ld_library_path.
	* libjava.mauve/mauve.exp (test_mauve): Set `env(GCJ)' from
	GCJ_UNDER_TEST, calculated just like in libjava.exp.

From-SVN: r28364
1999-07-31 23:52:52 +00:00
Tom Tromey
51e0d189ed G19990217_02.no-link: New file.
* libjava.compile/G19990217_02.no-link: New file.
	* libjava.compile/test.exp: Look for `.no-link' file.
	* lib/libjava.exp (test_libjava_from_source): Added `no-link'
	option.
	(test_libjava_from_javac): Likewise.  Also, handle package
	information from class name when creating class file name.

From-SVN: r28113
1999-07-15 09:15:26 +00:00
Tom Tromey
f160279bf8 test.exp: New file.
* libjava.lang/test.exp: New file.
	* libjava.lang/err9.out: New file.
	* libjava.lang/err9.java: New file.
	* libjava.lang/err8.out: New file.
	* libjava.lang/err8.java: New file.
	* libjava.lang/err7.out: New file.
	* libjava.lang/err7.java: New file.
	* libjava.lang/err6.out: New file.
	* libjava.lang/err6.java: New file.
	* libjava.lang/err5.out: New file.
	* libjava.lang/err5.java: New file.
	* libjava.lang/err4.out: New file.
	* libjava.lang/err4.java: New file.
	* libjava.lang/err3.out: New file.
	* libjava.lang/err3.java: New file.
	* libjava.lang/err2.out: New file.
	* libjava.lang/err2.java: New file.
	* libjava.lang/err13.out: New file.
	* libjava.lang/err13.java: New file.
	* libjava.lang/err12.out: New file.
	* libjava.lang/err12.java: New file.
	* libjava.lang/err11.out: New file.
	* libjava.lang/err11.java: New file.
	* libjava.lang/err10.out: New file.
	* libjava.lang/err10.java: New file.
	* libjava.lang/err1.out: New file.
	* libjava.lang/err1.java: New file.
	* libjava.lang/N19990310_5.out: New file.
	* libjava.lang/N19990310_5.java: New file.
	* libjava.lang/N19990310_4.out: New file.
	* libjava.lang/N19990310_4.java: New file.
	* libjava.lang/N19990310_3.out: New file.
	* libjava.lang/N19990310_3.java: New file.
	* libjava.lang/N19990310_02.out: New file.
	* libjava.lang/N19990310_02.java: New file.
	* libjava.lang/G19990303_02.out: New file.
	* libjava.lang/G19990303_02.java: New file.
	* libjava.lang/G19990303_01.out: New file.
	* libjava.lang/G19990303_01.java: New file.
	* libjava.lang/G19990302_02.out: New file.
	* libjava.lang/G19990302_02.java: New file.
	* libjava.lang/G19990301_01.out: New file.
	* libjava.lang/G19990301_01.java: New file.
	* libjava.compile/N19990317.java: New file.
	* libjava.compile/N19990310_01.java: New file.
	* libjava.compile/G19990225_01.java: New file.
	* libjava.compile/G19990217_02.java: New file.
	* libjava.compile/G19990217_01.java: New file.
	* libjava.compile/G19990210_3.java: New file.
	* libjava.compile/G19990210_2.java: New file.
	* libjava.compile/G19990210_1.java: New file.

From-SVN: r28087
1999-07-13 16:20:44 +00:00
Tom Tromey
dbdab5fa6c * libjava.lang/Final.xfail: Output fails, not exec.
From-SVN: r27965
1999-07-06 16:18:41 +00:00
Tom Tromey
f3d4f6f9a8 Final.xfail: New file.
* libjava.lang/Final.xfail: New file.
	* libjava.compile/Case.xfail: New file.
	* libjava.compile/Where.xfail: New file.
	* libjava.compile/test.exp: Look for `.xfail' files.
	* libjava.lang/test.exp: Don't look for `.arg' files.
	Do look for `.xfail' files.
	* lib/libjava.exp (test_libjava_from_source): Changed meaning of
	`exec_args' argument.  Handle `xfail-*' arguments.
	(test_libjava_from_javac): Likewise.
	(test_libjava): Likewise.
	(libjava_read_xfail): New proc.

From-SVN: r27957
1999-07-06 15:38:09 +00:00
Bryce McKinlay
58aa6bf059 Final.java: Added.
1999-07-05  Bryce McKinlay  <bryce@albatross.co.nz>
        * libjava.lang/Final.java: Added.
        * libjava.lang/Final.out: Added.

From-SVN: r27949
1999-07-05 20:54:41 +01:00
Tom Tromey
5193d0bfa5 Finalize_1.out: Removed.
* libjava.lang/Finalize_1.out: Removed.
	* libjava.lang/Finalize_1.java: Removed.

From-SVN: r27927
1999-07-02 15:55:46 +00:00
Tom Tromey
69aa60908b Thread_1.out: Updated.
* libjava.lang/Thread_1.out: Updated.
	* libjava.lang/Thread_1.java: Don't run exit test.

From-SVN: r27925
1999-07-02 15:44:11 +00:00
Anthony Green
c05fb06e32 mauve.exp: Don't stop counting test results prematurely.
* libjava.mauve/mauve.exp: Don't stop counting test results
        prematurely.

From-SVN: r27890
1999-07-01 16:32:32 +00:00
Anthony Green
4cf6f930ea Missed changelog entry
From-SVN: r27883
1999-07-01 15:36:58 +00:00
Anthony Green
10d86ac32b mauve.exp: Don't stop counting test results just because the harness returns non 0 value.
* libjava.mauve/mauve.exp: Don't stop counting test results just
        because the harness returns non 0 value.

From-SVN: r27882
1999-07-01 15:33:17 +00:00
Tom Tromey
7dda3e3a78 libjava.exp (test_libjava_from_javac): Fixed typo.
* lib/libjava.exp (test_libjava_from_javac): Fixed typo.  Always
	make class_files a list.

From-SVN: r27772
1999-06-25 13:59:09 +00:00
Tom Tromey
527c99b3ec libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to class file names.
* lib/libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to
	class file names.

From-SVN: r27771
1999-06-25 13:55:59 +00:00
Tom Tromey
fe574d5d92 libjava.exp (libjava_arguments): If `libtool' not found in build tree, just use $GCJ_UNDER_TEST as compiler.
* lib/libjava.exp (libjava_arguments): If `libtool' not found in
	build tree, just use $GCJ_UNDER_TEST as compiler.

From-SVN: r27728
1999-06-24 19:06:28 +00:00
Tom Tromey
09dd71fc3e * lib/libjava.exp (libjava_arguments): Handle -lzgcj.
From-SVN: r27721
1999-06-23 15:14:36 +00:00
Tom Tromey
41e0e0cdbb Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (INCLUDES): Added $(ZINCS).
	* configure: Rebuilt.
	* configure.in (ZINCS): New subst.

From-SVN: r27083
1999-05-21 13:09:54 +00:00
Andrew Haley
554b61bb30 prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.
1999-05-20  Andrew Haley  <aph@cygnus.com>
        * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
        added.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
        (INIT_FPE): Exception string made more informative.
        * include/sparc-signal.h (INIT_FPE): Exception string made more
        informative.
        * testsuite/libjava.lang/Divide_1.java: New file.
        * testsuite/libjava.lang/Divide_1.out: New file.

From-SVN: r27056
1999-05-20 08:26:55 +00:00
Anthony Green
7ec6a04ef8 Shazam.java: New file.
* libjava.lang/Shazam.java: New file.
	libjava.lang/Shazam.out: New file.

From-SVN: r27022
1999-05-19 06:53:20 +00:00
Andrew Haley
3b551e09f1 Invoke_2.java: New file.
1999-05-12  Andrew Haley  <aph@cygnus.com>
        * libjava.lang/Invoke_2.java: New file.

From-SVN: r26900
1999-05-12 11:17:09 +00:00
Tom Tromey
f994389bf8 Makefile.in, configure: Rebuilt.
* Makefile.in, configure: Rebuilt.
	* Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
	(jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
	(jv_convert_DEPENDENCIES): Added ZDEPS.
	* configure.in (GCSPEC): Added `-L' to point to boehm-gc build
	directory.
	(THREADSPEC): Added `-L' to point to qthreads build directory.
	(ZLIBS): New subst.
	(ZDEPS): New subst.
	* configure, Makefile.in: Rebuilt.
	* Makefile.am (toolexeclib_DATA): New macro.
	* configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
	Recognize --with-system-zlib.
	(GCSPEC): New subst.
	(THREADSPEC): New subst.
	(SYSTEMSPEC): New subst.
	(ZLIBSPEC): New subst.
	* libgcj.spec.in: New file.

From-SVN: r26885
1999-05-11 12:11:09 +00:00
Tom Tromey
01b02b11de acconfig.h (GCJVERSION): New undef.
* acconfig.h (GCJVERSION): New undef.
	* java/lang/natSystem.cc (init_properties): Define java.version,
	java.class.version, os.name, os.arch, os.version.
	Include <sys/utsname.h> if required.
	* configure: Rebuilt.
	* configure.in: Compute and define GCJVERSION.
	* java/lang/natSystem.cc (default_file_encoding): Now static.

From-SVN: r26830
1999-05-07 18:44:38 +00:00
Tom Tromey
8b91074ea7 libjava.exp (libjava_arguments): Don't use -nodefaultlibs.
* lib/libjava.exp (libjava_arguments): Don't use -nodefaultlibs.
	(libjava_find_lib): Add `-L' option to find the actual library.

From-SVN: r26782
1999-05-05 11:56:28 +00:00
Tom Tromey
e04aa64ded mauve.exp (test_mauve): Pass `link' to libjava_arguments when linking.
* libjava.mauve/mauve.exp (test_mauve): Pass `link' to
	libjava_arguments when linking.
	(test_mauve_sim): Likewise.
	* lib/libjava.exp (libjava_arguments): Run `libtool' to link.
	Don't use `-static'.  Added `mode' argument.  Use -nodefaultlibs
	when linking.
	(test_libjava_from_source): Mention why target_compile failed.
	Pass `link' to libjava_arguments when linking.  Only do `xfails'
	for tests we would actually have run.
	(test_libjava_from_javac): Likewise.
	(libjava_find_lib): Return name of `.la' file.

From-SVN: r26748
1999-05-03 12:48:34 +00:00
Tom Tromey
844f90bc2c libjava.exp (libjava_find_lib): New proc.
* lib/libjava.exp (libjava_find_lib): New proc.
	(libjava_arguments): Use it.  Force static linking.

From-SVN: r26651
1999-04-26 14:28:20 +00:00
Warren Levy
12571b1f96 Makefile.am: Added URLDecoder and URLEncoder.
* Makefile.am: Added URLDecoder and URLEncoder.
	* Makefile.in: Rebuilt.
	* java/net/ServerSocket.java (setSocketFactory): Renamed from
	setSocketImplFactory to match spec.
	* java/net/Socket.java (getSoLinger): Changed return type to
	match spec.
	* java/net/URLDecoder.java: New file.
	* java/net/URLEncoder.java: New file.

From-SVN: r26605
1999-04-23 16:36:22 +00:00
Anthony Green
12d03f6671 * libjava.compile/OperatorBenchmark.java: New file.
From-SVN: r26583
1999-04-22 14:22:11 +00:00
Anthony Green
fac6189871 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Add new security files.
	* java/security/NoSuchAlgorithmException.java,
	java/security/MessageDigest.java: New files.
	* include/javaprims.h: Add security namespace.

From-SVN: r26536
1999-04-18 08:24:30 +00:00
Tom Tromey
69d5914bd0 natSystem.cc (SystemClass): New define.
* java/lang/natSystem.cc (SystemClass): New define.
	(init_properties): Synchronize.

From-SVN: r26372
1999-04-12 12:34:41 +00:00
Warren Levy
8956b6a172 * libjava.mauve/mauve.exp (KEYS): Default to libgcj.
From-SVN: r26311
1999-04-09 11:44:38 +00:00
Tom Tromey
a08c72fe45 plusplus.java: New file.
* libjava.compile/plusplus.java: New file.
	From MoT <Sebastien.Villemot@ens.fr>.

From-SVN: r26310
1999-04-09 10:45:10 +00:00
Tom Tromey
ee9dd3721b Initial revision
From-SVN: r26263
1999-04-07 14:42:40 +00:00