summaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-27 17:26:48 +0000
committeraclement <aclement>2005-01-27 17:26:48 +0000
commit4adf568fdfcc82ea7257cf24f88aefa109deba52 (patch)
treee8aaa736704803c3cd19975aa97044048f27a74a /tests/bugs150
parentfa3cbd5115a5ba8f18609b863f0d875a640d412f (diff)
downloadaspectj-4adf568fdfcc82ea7257cf24f88aefa109deba52.tar.gz
aspectj-4adf568fdfcc82ea7257cf24f88aefa109deba52.zip
Fix for Bug 83645: pertypewithin({interface}) illegal field modifier
- moving Wes' test to the regression set.
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/PR83645.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/bugs150/PR83645.java b/tests/bugs150/PR83645.java
index fa64a9cb8..798f907ff 100644
--- a/tests/bugs150/PR83645.java
+++ b/tests/bugs150/PR83645.java
@@ -7,6 +7,8 @@ interface IP {}
public class PR83645 implements IP {
public static void main(String[] args) {
try {
+ boolean hasAspect = PT.hasAspect(IP.class);
+ if (hasAspect) throw new Error("Shouldn't have an instance for an interface");
boolean yes = (PT.aspectOf(IP.class) instanceof PT);
throw new Error("expected NoAspectBoundException, got instance?: " + yes);
} catch (NoAspectBoundException e) {
@@ -14,11 +16,13 @@ public class PR83645 implements IP {
}
}
}
+
aspect PT pertypewithin(IP+) {
static int INDEX;
final int index = INDEX++;
- public PT() {
- }
+
+ public PT() {}
+
public String toString() {
return "me " + index;
}