From 99eb7f8654eef884dfb204f8fdc0ea00fe849cec Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 25 Jan 2006 11:28:51 +0000 Subject: fix for 122452 - pattern parser for a duff pointcut definition. Also fix for 125027 (deow length set wrong during parsing). latter fix from Helen. --- .../org/aspectj/weaver/patterns/DeclareErrorOrWarningTestCase.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'weaver/testsrc') 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(); } -- cgit v1.2.3