From 950868d6c436e2ba44dab96be5b32aa9ead7fc1c Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 8 Sep 2011 15:37:07 +0000 Subject: [PATCH] 357012, 357013, 357019 --- .../src/org/aspectj/weaver/patterns/PatternParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PatternParser.java b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PatternParser.java index 321f1e759..6bcb4ce4a 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PatternParser.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/patterns/PatternParser.java @@ -1332,6 +1332,9 @@ public class PatternParser { if (tok.getString() == "," && depth == 0) { break; } + if (tok == IToken.EOF) { + throw new ParserException("eof", tokenSource.peek()); + } // keep track of nested brackets if (tok.getString() == "(") { -- 2.39.5