From: aclement Date: Mon, 24 Apr 2006 08:45:34 +0000 (+0000) Subject: unfinished fix for 137568 X-Git-Tag: V1_5_2rc1~188 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=783f85dae63e052d6d58c4a6e3d68555ace4c5bf;p=aspectj.git unfinished fix for 137568 --- diff --git a/weaver/src/org/aspectj/weaver/TypeFactory.java b/weaver/src/org/aspectj/weaver/TypeFactory.java index d750d10ee..93bf26f8e 100644 --- a/weaver/src/org/aspectj/weaver/TypeFactory.java +++ b/weaver/src/org/aspectj/weaver/TypeFactory.java @@ -104,6 +104,21 @@ public class TypeFactory { return ret; } else if(firstChar=='+') { // ? extends ... + /* + // this bound calc is for bug pr137568 ... don't like duplicating this here from above... + String subsig = signature.substring(1); + int startOfParams = subsig.indexOf('<'); + int endOfParams = subsig.lastIndexOf('>'); + UnresolvedType bound = null; + if (startOfParams==-1) { + bound = new UnresolvedType(subsig); + } else { + String signatureErasure = "L" + subsig.substring(1,startOfParams) + ";"; + UnresolvedType[] typeParams = createTypeParams(subsig.substring(startOfParams +1, endOfParams)); + bound = new UnresolvedType(subsig,signatureErasure,typeParams); + } + */ + //all that replaces: UnresolvedType bound = UnresolvedType.forSignature(signature.substring(1)); UnresolvedType ret = new UnresolvedType(signature); ret.typeKind = TypeKind.WILDCARD;