diff options
author | acolyer <acolyer> | 2005-08-18 09:36:33 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-18 09:36:33 +0000 |
commit | e11df238c6cdcb9925ab809a7842a3909a42197f (patch) | |
tree | fee485f21a826f9ca47df35a62bb552541887e4b | |
parent | 5dd3cc085103f409982e5b484fe32ba68c909701 (diff) | |
download | aspectj-e11df238c6cdcb9925ab809a7842a3909a42197f.tar.gz aspectj-e11df238c6cdcb9925ab809a7842a3909a42197f.zip |
allow a reference pointcut reference of the form Generic<String>.foo()
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/PatternParser.java b/weaver/src/org/aspectj/weaver/patterns/PatternParser.java index 640762f91..f0d1057e5 100644 --- a/weaver/src/org/aspectj/weaver/patterns/PatternParser.java +++ b/weaver/src/org/aspectj/weaver/patterns/PatternParser.java @@ -493,7 +493,13 @@ public class PatternParser { private Pointcut parseReferencePointcut() { TypePattern onType = parseTypePattern(); - NamePattern name = tryToExtractName(onType); + NamePattern name = null; + if (onType.typeParameters.size() > 0) { + eat("."); + name = parseNamePattern(); + } else { + name = tryToExtractName(onType); + } if (name == null) { throw new ParserException("name pattern", tokenSource.peek()); } |