aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/autoboxing/AutoboxingZ.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/autoboxing/AutoboxingZ.java')
-rw-r--r--tests/java5/autoboxing/AutoboxingZ.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/java5/autoboxing/AutoboxingZ.java b/tests/java5/autoboxing/AutoboxingZ.java
new file mode 100644
index 000000000..b88112d80
--- /dev/null
+++ b/tests/java5/autoboxing/AutoboxingZ.java
@@ -0,0 +1,14 @@
+public class AutoboxingZ {
+
+ public static void method_takes_Boolean(Boolean b) { System.err.println("method_takes_Boolean="+b);}
+ public static void method_takes_boolean(boolean b) { System.err.println("method_takes_boolean="+b);}
+
+ public static void main(String[] argv) {
+ Boolean t = new Boolean(false);
+ boolean f = false;
+ method_takes_Boolean(t);
+ method_takes_Boolean(f);
+ method_takes_boolean(t);
+ method_takes_boolean(f);
+ }
+}