diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-18 17:29:21 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-18 17:29:21 +0000 |
commit | 64089cc9f030d8ef7972adb5d117e0b23f47d62b (patch) | |
tree | 9f9c470de62ee62fba1331a396450d728d2b1fad /libjava/classpath/testsuite/java.lang/ArrayTest.java | |
parent | 96034e28360d660d7a7708807fcbc4b519574d8e (diff) | |
download | ppe42-gcc-64089cc9f030d8ef7972adb5d117e0b23f47d62b.tar.gz ppe42-gcc-64089cc9f030d8ef7972adb5d117e0b23f47d62b.zip |
Imported GNU Classpath 0.90
* scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
* sources.am: Regenerated.
* gcj/javaprims.h: Regenerated.
* Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* gnu/java/lang/VMInstrumentationImpl.java: New override.
* gnu/java/net/local/LocalSocketImpl.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
interface.
* java/lang/Thread.java: Add UncaughtExceptionHandler.
* java/lang/reflect/Method.java: Implements GenericDeclaration and
isSynthetic(),
* java/lang/reflect/Field.java: Likewise.
* java/lang/reflect/Constructor.java
* java/lang/Class.java: Implements Type, GenericDeclaration,
getSimpleName() and getEnclosing*() methods.
* java/lang/Class.h: Add new public methods.
* java/lang/Math.java: Add signum(), ulp() and log10().
* java/lang/natMath.cc (log10): New function.
* java/security/VMSecureRandom.java: New override.
* java/util/logging/Logger.java: Updated to latest classpath
version.
* java/util/logging/LogManager.java: New override.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113887 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/testsuite/java.lang/ArrayTest.java')
-rw-r--r-- | libjava/classpath/testsuite/java.lang/ArrayTest.java | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/libjava/classpath/testsuite/java.lang/ArrayTest.java b/libjava/classpath/testsuite/java.lang/ArrayTest.java deleted file mode 100644 index 36eaff4064f..00000000000 --- a/libjava/classpath/testsuite/java.lang/ArrayTest.java +++ /dev/null @@ -1,100 +0,0 @@ - -public class ArrayTest { - public static void main (String args[]) - { - BooleanArrayInit(); - ByteArrayInit(); - CharArrayInit(); - ShortArrayInit(); - IntArrayInit(); - ArrayName(args); - } - public static void BooleanArrayInit() - { - try { - boolean val = true; - boolean [] x = { true }; - if (x[0] == val) - passed("BooleanArrayInit() boolean[] x = {"+val+"}"); - else - failed("BooleanArrayInit() boolean[] x = {"+val+"}"); - } catch (Exception e) { - failed("BooleanArrayInit() "+e); - } - } - public static void ByteArrayInit() - { - try { - byte val = 42; - byte [] x = { 42 }; - if (x[0] == val) - passed("ByteArrayInit() byte[] x = {"+val+"}"); - else - failed("ByteArrayInit() byte[] x = {"+val+"}"); - } catch (Exception e) { - failed("ByteArrayInit() "+e); - } - } - public static void CharArrayInit() - { - try { - char val = 'X'; - char [] x = { 'X' }; - if (x[0] == val) - passed("CharArrayInit() char[] x = {'"+val+"'}"); - else - failed("CharArrayInit() char[] x = {'"+val+"'}"); - } catch (Exception e) { - failed("CharArrayInit() "+e); - } - } - public static void ShortArrayInit() - { - try { - short val = 42; - short [] x = { 42 }; - if (x[0] == val) - passed("ShortArrayInit() short[] x = {"+val+"}"); - else - failed("ShortArrayInit() short[] x = {"+val+"}"); - } catch (Exception e) { - failed("ShortArrayInit() "+e); - } - } - public static void IntArrayInit() - { - try { - int val = 42; - int [] x = { 42 }; - if (x[0] == val) - passed("IntArrayInit() int[] x = {"+val+"}"); - else - failed("IntArrayInit() int[] x = {"+val+"}"); - } catch (Exception e) { - failed("IntArrayInit() "+e); - } - } - public static void failed(String s) - { - if (s != null) - System.out.println("FAILED: " + s); - else - System.out.println("FAILED: "); - } - public static void passed(String s) - { - if (s != null) - System.out.println("PASSED: " + s); - else - System.out.println("PASSED: "); - } - public static void ArrayName(String args[]) - { - try { - String name = args.getClass().getName(); - passed("ArrayName() name="+name); - } catch (Exception e) { - failed("ArrayName() "+e); - } - } -} |