This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: anonymous array test
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: anonymous array test
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 09 Feb 2000 13:49:28 -0700
- Reply-To: tromey at cygnus dot com
I'm committing this patch, which is another anonymous array test from
Alex.
2000-02-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.lang/anonarray3.out: New file.
* libjava.lang/anonarray3.java: New file.
Tom
Index: libjava.lang/anonarray3.java
===================================================================
RCS file: anonarray3.java
diff -N anonarray3.java
--- /dev/null Tue May 5 13:32:27 1998
+++ anonarray3.java Wed Feb 9 12:47:41 2000
@@ -0,0 +1,13 @@
+// Class anonarray3
+// Generated on Tue Feb 8 19:18:10 PST 2000
+//
+
+class anonarray3 {
+ private static final int[] foo (int x) {
+ return new int[] { x+1 };
+ }
+ public static void main (String[] arg)
+ {
+ System.out.println (foo (34)[0]);
+ }
+}
Index: libjava.lang/anonarray3.out
===================================================================
RCS file: anonarray3.out
diff -N anonarray3.out
--- /dev/null Tue May 5 13:32:27 1998
+++ anonarray3.out Wed Feb 9 12:47:41 2000
@@ -0,0 +1 @@
+35