aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2004-01-09 09:21:03 +0000
committerjhugunin <jhugunin>2004-01-09 09:21:03 +0000
commit7b081f2e0bece3414ac4f385cde75d7b54981099 (patch)
tree7c8b7d35d7e84fc1666f6813c30d8cf3520bcb9a /org.aspectj.ajdt.core
parent8d29495e512cf88357f43a044ec515506bca2768 (diff)
downloadaspectj-7b081f2e0bece3414ac4f385cde75d7b54981099.tar.gz
aspectj-7b081f2e0bece3414ac4f385cde75d7b54981099.zip
Fix for Bugzilla Bug 49638 exception logging: after() throwing advice can't convert Throwable obj to string and ajc aborts
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java
index 621576e16..819de5523 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/parser/AjParser.java
@@ -737,7 +737,12 @@ public class AjParser extends Parser {
} else if (CharOperation.equals(name, "returning".toCharArray())) {
adviceDecl.kind = AdviceKind.AfterReturning;
} else {
- //XXX illegal name here
+ problemReporter().parseError(
+ start,
+ end,
+ name,
+ String.valueOf(name),
+ new String[] {"throwing", "returning", ":"});
}
}