aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/testsrc
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-25 11:28:51 +0000
committeraclement <aclement>2006-01-25 11:28:51 +0000
commit99eb7f8654eef884dfb204f8fdc0ea00fe849cec (patch)
treedc89bd9b9dbbfb17b241fc8f5345232a71edf4ae /weaver/testsrc
parent244a1c78371fab02a6b2a9937fcc27e6cf1bc61d (diff)
downloadaspectj-99eb7f8654eef884dfb204f8fdc0ea00fe849cec.tar.gz
aspectj-99eb7f8654eef884dfb204f8fdc0ea00fe849cec.zip
fix for 122452 - pattern parser for a duff pointcut definition. Also fix for 125027 (deow length set wrong during parsing). latter fix from Helen.
Diffstat (limited to 'weaver/testsrc')
-rw-r--r--weaver/testsrc/org/aspectj/weaver/patterns/DeclareErrorOrWarningTestCase.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/patterns/DeclareErrorOrWarningTestCase.java b/weaver/testsrc/org/aspectj/weaver/patterns/DeclareErrorOrWarningTestCase.java
index 00bebaef9..fb06efa5e 100644
--- a/weaver/testsrc/org/aspectj/weaver/patterns/DeclareErrorOrWarningTestCase.java
+++ b/weaver/testsrc/org/aspectj/weaver/patterns/DeclareErrorOrWarningTestCase.java
@@ -44,6 +44,13 @@ public class DeclareErrorOrWarningTestCase extends TestCase {
}
+ public void testStartAndEndPositionSet() throws IOException {
+ DeclareErrorOrWarning d =
+ parse("declare error: call(void foo()): \"that is bad\";");
+ assertEquals("start position should be 0", 0, d.getStart());
+ assertEquals("end position should be 46", 46, d.getEnd());
+ }
+
private DeclareErrorOrWarning parse(String string) {
return (DeclareErrorOrWarning)new PatternParser(string).parseDeclare();
}