From 783f85dae63e052d6d58c4a6e3d68555ace4c5bf Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 24 Apr 2006 08:45:34 +0000 Subject: [PATCH] unfinished fix for 137568 --- weaver/src/org/aspectj/weaver/TypeFactory.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; -- 2.39.5