This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: another inner class test


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);
+  }
+
+}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]