summaryrefslogtreecommitdiffstats
path: root/tests/new/PR417b.java
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-16 18:51:06 +0000
committerwisberg <wisberg>2002-12-16 18:51:06 +0000
commit144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch)
treeb12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/new/PR417b.java
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/new/PR417b.java')
-rw-r--r--tests/new/PR417b.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/new/PR417b.java b/tests/new/PR417b.java
new file mode 100644
index 000000000..6bf12afd8
--- /dev/null
+++ b/tests/new/PR417b.java
@@ -0,0 +1,29 @@
+import org.aspectj.testing.*;
+public class PR417b {
+
+ public static class StaticTypes {
+ public static Integer INT = new Integer(3);
+ public static int i = 0;
+ public static byte b = (byte)1;
+ public static long l = 2L;
+ public static double d = (double)3;
+ public static float f = (float)4;
+ public static short s = (short)5;
+ public static char c = 'c';
+ }
+
+ public static void main (String[] args) {
+ new PR417b().run();
+ }
+
+ public void run() {
+ Tester.check(StaticTypes.INT.equals(new Integer(3)), "INT != 3");
+ Tester.checkEqual(StaticTypes.i,0);
+ Tester.checkEqual((int)StaticTypes.b,1);
+ Tester.checkEqual((int)StaticTypes.l,2);
+ Tester.checkEqual((int)StaticTypes.d,3);
+ Tester.checkEqual((int)StaticTypes.f,4);
+ Tester.checkEqual((int)StaticTypes.s,5);
+ Tester.checkEqual(StaticTypes.c,'c');
+ }
+}