checkcast testcase
authortbfg <none@none>
Fri, 3 Nov 2006 15:40:32 +0000 (15:40 +0000)
committertbfg <none@none>
Fri, 3 Nov 2006 15:40:32 +0000 (15:40 +0000)
tests/checkcast.java [new file with mode: 0644]

diff --git a/tests/checkcast.java b/tests/checkcast.java
new file mode 100644 (file)
index 0000000..3b403d8
--- /dev/null
@@ -0,0 +1,8 @@
+class checkcast        {
+       public static void main(String[] args)  {
+               Object o1 = new String();
+               Object o2 = new Integer(1);
+               String s1 = (String)o1;
+               String s2 = (String)o2;
+       }
+}