From 9175cd11dfa04aa9b30da47ee8789bc79e24fa46 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 9 Oct 2006 12:27:56 +0000 Subject: [PATCH] no 1.5 API! --- weaver/src/org/aspectj/weaver/TypeFactory.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/TypeFactory.java b/weaver/src/org/aspectj/weaver/TypeFactory.java index 22d8633f0..3168f9ca3 100644 --- a/weaver/src/org/aspectj/weaver/TypeFactory.java +++ b/weaver/src/org/aspectj/weaver/TypeFactory.java @@ -114,7 +114,7 @@ public class TypeFactory { StringBuffer erasureSig = new StringBuffer(signature); while (startOfParams!=-1) { erasureSig.delete(startOfParams,endOfParams+1); - startOfParams = erasureSig.indexOf("<"); + startOfParams = locateFirstBracket(erasureSig); if (startOfParams!=-1) endOfParams = locateMatchingEndBracket(erasureSig,startOfParams); } @@ -208,6 +208,15 @@ public class TypeFactory { } return idx; } + + private static int locateFirstBracket(StringBuffer signature) { + int idx = 0; + while (idx