]> source.dussan.org Git - aspectj.git/commitdiff
testcode for 118326
authoraclement <aclement>
Thu, 1 Dec 2005 12:02:08 +0000 (12:02 +0000)
committeraclement <aclement>
Thu, 1 Dec 2005 12:02:08 +0000 (12:02 +0000)
tests/bugs150/pr118326/Bar.java [new file with mode: 0644]
tests/bugs150/pr118326/Foo.java [new file with mode: 0644]

diff --git a/tests/bugs150/pr118326/Bar.java b/tests/bugs150/pr118326/Bar.java
new file mode 100644 (file)
index 0000000..4f238ae
--- /dev/null
@@ -0,0 +1,10 @@
+public aspect Bar {
+    public int Foo.x = null; // error
+    
+    public int Foo.y = 3;
+    
+    public int Foo.z = new Integer(42); // autoboxing
+    
+    public int Foo.i = "hello"; // error
+
+}
diff --git a/tests/bugs150/pr118326/Foo.java b/tests/bugs150/pr118326/Foo.java
new file mode 100644 (file)
index 0000000..ec87a84
--- /dev/null
@@ -0,0 +1,6 @@
+public class Foo {
+    //int y = null;
+    public static void main(String[] args) {
+        Foo f = new Foo();
+    }
+}