summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/InterfaceAndObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pureJava/InterfaceAndObject.java')
-rw-r--r--tests/pureJava/InterfaceAndObject.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/pureJava/InterfaceAndObject.java b/tests/pureJava/InterfaceAndObject.java
new file mode 100644
index 000000000..c1c2633bb
--- /dev/null
+++ b/tests/pureJava/InterfaceAndObject.java
@@ -0,0 +1,43 @@
+import javax.swing.*;
+import javax.swing.border.*;
+import javax.swing.event.*;
+import javax.swing.plaf.FontUIResource;
+import java.awt.*;
+import java.awt.event.*;
+import java.beans.*;
+import java.io.*;
+import java.util.EventObject;
+import java.util.Vector;
+
+public class InterfaceAndObject {
+ Timer t = null;
+ public static void main(String[] args) {
+ I i = new I() {};
+ System.out.println(i);
+ //new I() {}.toString();
+ }
+}
+
+class Root {
+ public String toString() { return "root"; }
+}
+
+class C extends Root implements I {}
+
+class C1 extends Root implements I1 {
+ public Object clone() { return null; }
+}
+
+interface I0 {
+ public Object clone();
+}
+
+interface I {
+ //public void toString();
+ public boolean equals(Object o);
+}
+
+
+interface I1 extends I, I0 {
+ //public Object clone();
+}