From 020dc6e3132b505fa928f9ce3c11cc6f824cbec7 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 1 Dec 2005 12:02:08 +0000 Subject: [PATCH] testcode for 118326 --- tests/bugs150/pr118326/Bar.java | 10 ++++++++++ tests/bugs150/pr118326/Foo.java | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/bugs150/pr118326/Bar.java create mode 100644 tests/bugs150/pr118326/Foo.java diff --git a/tests/bugs150/pr118326/Bar.java b/tests/bugs150/pr118326/Bar.java new file mode 100644 index 000000000..4f238ae3a --- /dev/null +++ b/tests/bugs150/pr118326/Bar.java @@ -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 index 000000000..ec87a846f --- /dev/null +++ b/tests/bugs150/pr118326/Foo.java @@ -0,0 +1,6 @@ +public class Foo { + //int y = null; + public static void main(String[] args) { + Foo f = new Foo(); + } +} -- 2.39.5