aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/autoboxing/AutoboxingZ.java
diff options
context:
space:
mode:
authoraclement <aclement>2004-12-09 18:58:06 +0000
committeraclement <aclement>2004-12-09 18:58:06 +0000
commit611164c967be7d02c56a014a4ef2e79f9b52f16a (patch)
tree0c309d0568ae9db62c7da321d7d6891c4fe42e00 /tests/java5/autoboxing/AutoboxingZ.java
parent4a151e1a818651266762a6721d0affd745b51946 (diff)
downloadaspectj-611164c967be7d02c56a014a4ef2e79f9b52f16a.tar.gz
aspectj-611164c967be7d02c56a014a4ef2e79f9b52f16a.zip
Autoboxing testdata - all primitives covered.
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);
+ }
+}