aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr113066
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-07 10:54:42 +0000
committeraclement <aclement>2005-11-07 10:54:42 +0000
commit297b594087644bf3566a865584766f8410ca4286 (patch)
treed67d468c4b0ddb722da11dd30c2e72aeb25e89dd /tests/bugs150/pr113066
parentf00d694940fbb8999b63b90d357c8d8409151670 (diff)
downloadaspectj-297b594087644bf3566a865584766f8410ca4286.tar.gz
aspectj-297b594087644bf3566a865584766f8410ca4286.zip
tests for 112783 and 113066
Diffstat (limited to 'tests/bugs150/pr113066')
-rw-r--r--tests/bugs150/pr113066/Consts.java2
-rw-r--r--tests/bugs150/pr113066/Consts2.java4
-rw-r--r--tests/bugs150/pr113066/Consts3.java5
-rw-r--r--tests/bugs150/pr113066/TestNPE2.java4
-rw-r--r--tests/bugs150/pr113066/TestNPE3.java4
5 files changed, 18 insertions, 1 deletions
diff --git a/tests/bugs150/pr113066/Consts.java b/tests/bugs150/pr113066/Consts.java
index d79bcbdec..e1f76e091 100644
--- a/tests/bugs150/pr113066/Consts.java
+++ b/tests/bugs150/pr113066/Consts.java
@@ -1,4 +1,4 @@
package a;
public class Consts {
- static String A_CONST="bla";
+ static String A_CONST="bla"; // default visibility - will be OK, TestNPE is in the same package
}
diff --git a/tests/bugs150/pr113066/Consts2.java b/tests/bugs150/pr113066/Consts2.java
new file mode 100644
index 000000000..ac145d1a4
--- /dev/null
+++ b/tests/bugs150/pr113066/Consts2.java
@@ -0,0 +1,4 @@
+package a;
+public class Consts2 {
+ private static String A_CONST="bla"; // Should get error in TestNPE - it can't see this to import it.
+}
diff --git a/tests/bugs150/pr113066/Consts3.java b/tests/bugs150/pr113066/Consts3.java
new file mode 100644
index 000000000..1cf722b55
--- /dev/null
+++ b/tests/bugs150/pr113066/Consts3.java
@@ -0,0 +1,5 @@
+package a;
+public class Consts3 {
+ protected static String A_CONST="bla"; // should be ok, TestNPE3 is a subclass of Consts
+
+}
diff --git a/tests/bugs150/pr113066/TestNPE2.java b/tests/bugs150/pr113066/TestNPE2.java
new file mode 100644
index 000000000..9682dc840
--- /dev/null
+++ b/tests/bugs150/pr113066/TestNPE2.java
@@ -0,0 +1,4 @@
+package a;
+import static a.Consts2.A_CONST;
+public class TestNPE2 {}
+
diff --git a/tests/bugs150/pr113066/TestNPE3.java b/tests/bugs150/pr113066/TestNPE3.java
new file mode 100644
index 000000000..3ae7c4184
--- /dev/null
+++ b/tests/bugs150/pr113066/TestNPE3.java
@@ -0,0 +1,4 @@
+package a;
+import static a.Consts3.A_CONST;
+public class TestNPE3 extends a.Consts3 {}
+