From: aclement Date: Wed, 22 Feb 2006 15:18:01 +0000 (+0000) Subject: optimizationasm: this needs to know if a modifiable (weavable) delegate is required... X-Git-Tag: POST_MEMORY_CHANGES~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=860ad30a468d26a9880487ce8b8858e572ba9861;p=aspectj.git optimizationasm: this needs to know if a modifiable (weavable) delegate is required. Some testcases want a weavable delegate where other decisions we might make would lead us to create an AsmDelegate --- diff --git a/weaver/src/org/aspectj/weaver/UnresolvedType.java b/weaver/src/org/aspectj/weaver/UnresolvedType.java index 4909da904..b793e328f 100644 --- a/weaver/src/org/aspectj/weaver/UnresolvedType.java +++ b/weaver/src/org/aspectj/weaver/UnresolvedType.java @@ -553,6 +553,15 @@ public class UnresolvedType implements TypeVariableDeclaringElement { return signatureErasure; } + private boolean needsModifiableDelegate =false; + public boolean needsModifiableDelegate() { + return needsModifiableDelegate; + } + + public void setNeedsModifiableDelegate(boolean b) { + this.needsModifiableDelegate=b; + } + public UnresolvedType getRawType() { return UnresolvedType.forSignature(getErasureSignature()); } @@ -799,6 +808,7 @@ public class UnresolvedType implements TypeVariableDeclaringElement { public static UnresolvedType[] readArray(DataInputStream s) throws IOException { int len = s.readShort(); + if (len==0) return UnresolvedType.NONE; UnresolvedType[] types = new UnresolvedType[len]; for (int i=0; i < len; i++) { types[i] = UnresolvedType.read(s);