From 8142839a418b4c7266ccaa99ed7b1208a48a04aa Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 12 Feb 1999 15:35:11 +0000 Subject: [PATCH] A few cast tests git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@275 379699f6-c40d-0410-875b-85095c16579e --- jode/test/LocalTypes.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/jode/test/LocalTypes.java b/jode/test/LocalTypes.java index ae869f4..ba0631d 100644 --- a/jode/test/LocalTypes.java +++ b/jode/test/LocalTypes.java @@ -141,5 +141,20 @@ public class LocalTypes { } } } + + public void castTests() { + System.err.println(null instanceof int[]); + System.err.println(((Object)new int[4]) instanceof byte[]); + System.err.println(((Object)new byte[4]) instanceof int[]); + System.err.println(((Object)new int[4]) instanceof LocalTypes); + System.err.println(((Object)new int[4]) instanceof int[][]); + System.err.println(new Object[4] instanceof int[][]); + System.err.println(new int[5][4] instanceof java.io.Serializable[]); + System.err.println(((Object)this) instanceof RuntimeException); + System.err.println(((RuntimeException)(Object)this).getMessage()); + ((java.io.PrintStream)null).println("Hallo"); + ((LocalTypes) null).a = new A(); + ((LocalTypes) null).b = new B(); + } }