]> source.dussan.org Git - aspectj.git/commitdiff
optimizationasm: this needs to know if a modifiable (weavable) delegate is required...
authoraclement <aclement>
Wed, 22 Feb 2006 15:18:01 +0000 (15:18 +0000)
committeraclement <aclement>
Wed, 22 Feb 2006 15:18:01 +0000 (15:18 +0000)
weaver/src/org/aspectj/weaver/UnresolvedType.java

index 4909da904ff71c39104066266c4ef4b7dcfb8d4f..b793e328fbf04a2789db8f3dc8937663b8b21641 100644 (file)
@@ -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);