From 860ad30a468d26a9880487ce8b8858e572ba9861 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 22 Feb 2006 15:18:01 +0000 Subject: [PATCH] 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 --- weaver/src/org/aspectj/weaver/UnresolvedType.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.39.5