This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: another inner class test
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: another inner class test
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 28 Feb 2000 21:18:46 -0700
- Reply-To: tromey at cygnus dot com
I'm checking in this patch.
It is yet another inner class test case.
2000-02-28 Mo DeJong <mdejong@cygnus.com>
* libjava.compile/static_inner.java: New file.
Tom
Index: libjava.compile//static_inner.java
===================================================================
RCS file: static_inner.java
diff -N static_inner.java
--- /dev/null Tue May 5 13:32:27 1998
+++ static_inner.java Mon Feb 28 20:16:51 2000
@@ -0,0 +1,19 @@
+// File Parent.java
+class Parent {
+ public static class Kid {
+ public Kid(int age) {
+ this.age = age;
+ }
+
+ int age;
+ }
+}
+
+// File NewParent.java
+public class static_inner extends Parent {
+
+ public static void main(String[] argv) {
+ Kid kid = new Kid(2);
+ }
+
+}